mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 15:26:18 +00:00
Constrain LCD status message rendering
This commit is contained in:
parent
a83f6db679
commit
ba5910ab6c
@ -634,7 +634,8 @@ static void lcd_implementation_status_screen() {
|
|||||||
|
|
||||||
#if ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)
|
#if ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)
|
||||||
if (PENDING(millis(), previous_lcd_status_ms + 5000UL)) { //Display both Status message line and Filament display on the last line
|
if (PENDING(millis(), previous_lcd_status_ms + 5000UL)) { //Display both Status message line and Filament display on the last line
|
||||||
lcd_print(lcd_status_message);
|
const char *str = lcd_status_message;
|
||||||
|
for (uint8_t i = 0; char c = str[i] && i < LCD_WIDTH; ++i) lcd_print(c);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lcd_printPGM(PSTR(LCD_STR_FILAM_DIA));
|
lcd_printPGM(PSTR(LCD_STR_FILAM_DIA));
|
||||||
@ -646,7 +647,8 @@ static void lcd_implementation_status_screen() {
|
|||||||
u8g.print('%');
|
u8g.print('%');
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
lcd_print(lcd_status_message);
|
const char *str = lcd_status_message;
|
||||||
|
for (uint8_t i = 0; char c = str[i] && i < LCD_WIDTH; ++i) lcd_print(c);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -795,7 +795,8 @@ static void lcd_implementation_status_screen() {
|
|||||||
|
|
||||||
#endif // FILAMENT_LCD_DISPLAY && SDSUPPORT
|
#endif // FILAMENT_LCD_DISPLAY && SDSUPPORT
|
||||||
|
|
||||||
lcd_print(lcd_status_message);
|
const char *str = lcd_status_message;
|
||||||
|
for (uint8_t i = 0; char c = str[i] && i < LCD_WIDTH; ++i) lcd_print(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(ULTIPANEL)
|
#if ENABLED(ULTIPANEL)
|
||||||
|
Loading…
Reference in New Issue
Block a user