m600: power panic: unset isPartialBackupAvailable on M600 exit

If no power panic occurred during M600 we should
clear isPartialBackupAvailable to let the power panic
code know to not use the partial backup. We want the
partial backup ONLY when the extruder is parked after a print is saved.

Change in memory:
Flash: +4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-07-27 16:55:08 +00:00
parent 320997a1f5
commit a96ee9da62
1 changed files with 5 additions and 0 deletions

View File

@ -7644,6 +7644,11 @@ Sigma_Exit:
automatic = true;
gcode_M600(automatic, x_position, y_position, z_shift, e_shift_init, e_shift_late);
// From this point forward, power panic should not use
// the partial backup in RAM since the extruder is no
// longer in parking position
clear_print_state_in_ram();
}
break;
#endif //FILAMENTCHANGEENABLE