Cancel a recovering print when using the LCD "Stop"

Also clear the UVLO flag when using lcd_print_stop. This prevents an
aborted print which has been cancelled while unparking (just prior to
recover) to come back again at the next startup.
This commit is contained in:
Yuri D'Elia 2020-01-22 19:39:55 +01:00
parent 7f3d4a8491
commit 5310181970
1 changed files with 1 additions and 0 deletions

View File

@ -11249,6 +11249,7 @@ void restore_print_from_ram_and_continue(float e_move)
// Cancel the state related to a currently saved print
void cancel_saved_printing()
{
eeprom_update_byte((uint8_t*)EEPROM_UVLO, 0);
saved_target[0] = SAVED_TARGET_UNSET;
saved_printing_type = PRINTING_TYPE_NONE;
saved_printing = false;