power panic: remove redundant lcd update calls
lcd_show_fullscreen_message_yes_no_and_wait_P will enable LCD update upon exit. Change in memory: Flash: -24 bytes SRAM: 0 bytes
This commit is contained in:
parent
02a5228f5e
commit
e2d0e9a2ee
|
|
@ -1595,12 +1595,11 @@ void setup()
|
|||
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
|
||||
puts_P(_N("Normal recovery!"));
|
||||
#endif
|
||||
if ( lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_RECOVER_PRINT), false) == LCD_LEFT_BUTTON_CHOICE) {
|
||||
recover_print(0);
|
||||
} else {
|
||||
const uint8_t btn = lcd_show_fullscreen_message_yes_no_and_wait_P(_T(MSG_RECOVER_PRINT), false);
|
||||
if ( btn == LCD_LEFT_BUTTON_CHOICE) {
|
||||
recover_print(0);
|
||||
} else { // LCD_MIDDLE_BUTTON_CHOICE
|
||||
eeprom_update_byte((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(MSG_WELCOME);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -316,8 +316,6 @@ ISR(INT4_vect) {
|
|||
}
|
||||
|
||||
void recover_print(uint8_t automatic) {
|
||||
lcd_update_enable(true);
|
||||
lcd_update(2);
|
||||
lcd_setstatuspgm(_i("Recovering print"));////MSG_RECOVERING_PRINT c=20
|
||||
|
||||
// Recover position, temperatures and extrude_multipliers
|
||||
|
|
|
|||
Loading…
Reference in New Issue