power panic: remove redundant lcd_setstatuspgm
If recover_print was never called, then there should be no need to call lcd_setstatuspgm(MSG_WELCOME) since the status line was not modified by the power panic feature. Change in memory: Flash: -4 bytes SRAM: 0 bytes
This commit is contained in:
parent
e2d0e9a2ee
commit
665c01804c
|
|
@ -1599,9 +1599,8 @@ void setup()
|
|||
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_setstatuspgm(MSG_WELCOME);
|
||||
}
|
||||
eeprom_update_byte((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue