Przeglądaj źródła

Text LCD display routine fix. Coauthored with @MagoKimbra (#10864)

Eduardo José Tagle 7 lat temu
rodzic
commit
1da2c4f1c1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/src/lcd/lcdprint_hd44780.cpp

+ 1
- 1
Marlin/src/lcd/lcdprint_hd44780.cpp Wyświetl plik

@@ -1026,7 +1026,7 @@ static int lcd_put_u8str_max_cb(const char * utf8_str, uint8_t (*cb_read_byte)(u
1026 1026
   while (ret < max_length) {
1027 1027
     wchar_t ch = 0;
1028 1028
     p = get_utf8_value_cb(p, cb_read_byte, &ch);
1029
-    if (!p) break;
1029
+    if (!ch) break;
1030 1030
     ret += lcd_put_wchar_max(ch, max_length - ret);
1031 1031
   }
1032 1032
   return (int)ret;

Ładowanie…
Anuluj
Zapisz