From 665c01804cc511be4c3db32e19537e217388b8c4 Mon Sep 17 00:00:00 2001 From: gudnimg Date: Sat, 25 Nov 2023 14:46:15 +0000 Subject: [PATCH] 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 --- Firmware/Marlin_main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 49f848d20..3baf122e0 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -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); + } } }