After reset or low bed temp recover HOST print as the HOST has to decide what to do
Only during SD print and a Reset + Low Bed temp the user has to confirm on LCD
This commit is contained in:
parent
4bc6bc3f90
commit
d36ea24c02
|
|
@ -1589,11 +1589,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue