Skip to content

Commit

Permalink
After reset or low bed temp recover HOST print as the HOST has to dec…
Browse files Browse the repository at this point in the history
…ide what to do

Only during SD print and a Reset + Low Bed temp the user has to confirm on LCD
  • Loading branch information
3d-gussner authored and D.R.racer committed Dec 1, 2023
1 parent d7ed160 commit 9ba0144
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1595,11 +1595,15 @@ void setup()
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
puts_P(_N("Normal recovery!"));
#endif
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);
if (eeprom_read_byte((uint8_t*)EEPROM_UVLO) == PowerPanic::PRINT_TYPE_USB) {
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);
}
}
}
}
Expand Down

0 comments on commit 9ba0144

Please sign in to comment.