|
@@ -386,10 +386,10 @@ void lcd_printPGM(const char *str) {
|
386
|
386
|
}
|
387
|
387
|
|
388
|
388
|
void lcd_print(const char* const str) {
|
389
|
|
- for (uint8_t i = 0; char c = str[i]; ++i) charset_mapper(c);
|
|
389
|
+ for (uint8_t i = 0; const char c = str[i]; ++i) charset_mapper(c);
|
390
|
390
|
}
|
391
|
391
|
|
392
|
|
-void lcd_print(char c) { charset_mapper(c); }
|
|
392
|
+void lcd_print(const char c) { charset_mapper(c); }
|
393
|
393
|
|
394
|
394
|
#if ENABLED(SHOW_BOOTSCREEN)
|
395
|
395
|
|
|
@@ -796,7 +796,9 @@ static void lcd_implementation_status_screen() {
|
796
|
796
|
#endif // FILAMENT_LCD_DISPLAY && SDSUPPORT
|
797
|
797
|
|
798
|
798
|
const char *str = lcd_status_message;
|
799
|
|
- for (uint8_t i = 0; char c = str[i] && i < LCD_WIDTH; ++i) lcd_print(c);
|
|
799
|
+ uint8_t i = LCD_WIDTH;
|
|
800
|
+ char c;
|
|
801
|
+ while (i-- && (c = *str++)) lcd_print(c);
|
800
|
802
|
}
|
801
|
803
|
|
802
|
804
|
#if ENABLED(ULTIPANEL)
|