From a96ee9da62bbe2e0e70c98df7b93bba776b062fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Thu, 27 Jul 2023 16:55:08 +0000 Subject: [PATCH] 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 --- Firmware/Marlin_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index e4fd392d1..9b5905a43 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -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