Ver código fonte

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

Eduardo José Tagle 7 anos atrás
pai
commit
1da2c4f1c1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/src/lcd/lcdprint_hd44780.cpp

+ 1
- 1
Marlin/src/lcd/lcdprint_hd44780.cpp Ver arquivo

1026
   while (ret < max_length) {
1026
   while (ret < max_length) {
1027
     wchar_t ch = 0;
1027
     wchar_t ch = 0;
1028
     p = get_utf8_value_cb(p, cb_read_byte, &ch);
1028
     p = get_utf8_value_cb(p, cb_read_byte, &ch);
1029
-    if (!p) break;
1029
+    if (!ch) break;
1030
     ret += lcd_put_wchar_max(ch, max_length - ret);
1030
     ret += lcd_put_wchar_max(ch, max_length - ret);
1031
   }
1031
   }
1032
   return (int)ret;
1032
   return (int)ret;

Carregando…
Cancelar
Salvar