Skip to content

Commit

Permalink
Merge pull request #4340 from esenapaj/Follow-up-the-PR-#4335
Browse files Browse the repository at this point in the history
Follow-up the PR #4335 (Debug char, fix compile errors for lcd pins)
  • Loading branch information
thinkyhead authored Jul 19, 2016
2 parents 4611759 + 3613078 commit d76389b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,11 @@ void lcd_update() {
void set_utf_strlen(char* s, uint8_t n) {
uint8_t i = 0, j = 0;
while (s[i] && (j < n)) {
if ((s[i] & 0xC0u) != 0x80u) j++;
#if ENABLED(MAPPER_NON)
j++;
#else
if ((s[i] & 0xC0u) != 0x80u) j++;
#endif
i++;
}
while (j++ < n) s[i++] = ' ';
Expand Down

0 comments on commit d76389b

Please sign in to comment.