Skip to content

Commit 05c25b8

Browse files
authored
Fix Power-Loss Save on Pause (MarlinFirmware#21749)
1 parent eddce41 commit 05c25b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Marlin/src/gcode/feature/pause/M125.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ void GcodeSuite::M125() {
7878
// If possible, show an LCD prompt with the 'P' flag
7979
const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
8080

81+
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
82+
8183
if (pause_print(retract, park_point, 0, show_lcd)) {
82-
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
8384
if (ENABLED(EXTENSIBLE_UI) || !sd_printing || show_lcd) {
8485
wait_for_confirmation(false, 0);
8586
resume_print(0, 0, -retract, 0);

0 commit comments

Comments
 (0)