Skip to content

Commit 98427ea

Browse files
thinkyheadSHBnik
andcommitted
Save PLR on resume from pause (#19676)
Co-Authored-By: shahab <32130261+SHBnik@users.noreply.github.com>
1 parent a90edd5 commit 98427ea

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Marlin/src/feature/pause.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
#include "../libs/buzzer.h"
6262
#endif
6363

64+
#if ENABLED(POWER_LOSS_RECOVERY)
65+
#include "powerloss.h"
66+
#endif
67+
6468
#include "../libs/nozzle.h"
6569
#include "pause.h"
6670

@@ -640,6 +644,9 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
640644
// Set extruder to saved position
641645
planner.set_e_position_mm((destination.e = current_position.e = resume_position.e));
642646

647+
// Write PLR now to update the z axis value
648+
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
649+
643650
TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_STATUS));
644651

645652
#ifdef ACTION_ON_RESUMED

0 commit comments

Comments
 (0)