Save bytes for custom chars (Hitachi LCD)
This commit is contained in:
@@ -486,8 +486,8 @@ static void lcd_status_screen() {
|
||||
if (current_click) {
|
||||
lcd_goto_screen(lcd_main_menu, true);
|
||||
lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
|
||||
#if ENABLED(LCD_PROGRESS_BAR) && ENABLED(ULTIPANEL)
|
||||
currentScreen == lcd_status_screen
|
||||
#if ENABLED(LCD_PROGRESS_BAR)
|
||||
false
|
||||
#endif
|
||||
);
|
||||
#if ENABLED(FILAMENT_LCD_DISPLAY)
|
||||
@@ -2377,12 +2377,15 @@ void kill_screen(const char* lcd_msg) {
|
||||
(*callback)();
|
||||
}
|
||||
|
||||
#endif //ULTIPANEL
|
||||
#endif // ULTIPANEL
|
||||
|
||||
/** LCD API **/
|
||||
void lcd_init() {
|
||||
|
||||
lcd_implementation_init();
|
||||
lcd_implementation_init(
|
||||
#if ENABLED(LCD_PROGRESS_BAR)
|
||||
true
|
||||
#endif
|
||||
);
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if BUTTON_EXISTS(EN1)
|
||||
@@ -2537,12 +2540,7 @@ void lcd_update() {
|
||||
|
||||
bool sd_status = IS_SD_INSERTED;
|
||||
if (sd_status != lcd_sd_status && lcd_detected()) {
|
||||
lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
|
||||
lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
|
||||
#if ENABLED(LCD_PROGRESS_BAR) && ENABLED(ULTIPANEL)
|
||||
currentScreen == lcd_status_screen
|
||||
#endif
|
||||
);
|
||||
lcd_sd_status = sd_status;
|
||||
|
||||
if (sd_status) {
|
||||
card.initsd();
|
||||
@@ -2553,7 +2551,12 @@ void lcd_update() {
|
||||
if (lcd_sd_status != 2) LCD_MESSAGEPGM(MSG_SD_REMOVED);
|
||||
}
|
||||
|
||||
lcd_sd_status = sd_status;
|
||||
lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
|
||||
lcd_implementation_init( // to maybe revive the LCD if static electricity killed it.
|
||||
#if ENABLED(LCD_PROGRESS_BAR)
|
||||
currentScreen == lcd_status_screen
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
#endif //SDSUPPORT && SD_DETECT_PIN
|
||||
|
Reference in New Issue
Block a user