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:
gudnimg 2023-11-25 14:46:15 +00:00 committed by DRracer
parent e2d0e9a2ee
commit 665c01804c
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}
}