From 361307831ebaa30c63c8f6e83d657f208c73f7ab Mon Sep 17 00:00:00 2001 From: esenapaj Date: Mon, 18 Jul 2016 14:12:55 +0900 Subject: [PATCH] Follow-up the PR #4335 (Debug char, fix compile errors for lcd pins) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・Solve a flickering when SD card is inserted or removed at using a ASCII LCD + language_kana.h --- Marlin/ultralcd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index f96d74c91..f1f71b3f0 100755 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -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++] = ' ';