1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00
Follow-up the PR #4335 (Debug char, fix compile errors for lcd pins)
This commit is contained in:
Scott Lahteine 2016-07-19 12:43:50 -07:00 committed by GitHub
commit d76389b4d1

View File

@ -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++] = ' ';