Skip to content

Commit

Permalink
Save PLR on resume from pause (MarlinFirmware#19676)
Browse files Browse the repository at this point in the history
Co-Authored-By: shahab <32130261+SHBnik@users.noreply.github.com>
  • Loading branch information
thinkyhead and SHBnik committed Oct 16, 2020
1 parent e680196 commit 4ee717f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Marlin/src/feature/pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
#include "../libs/buzzer.h"
#endif

#if ENABLED(POWER_LOSS_RECOVERY)
#include "powerloss.h"
#endif

#include "../libs/nozzle.h"
#include "pause.h"

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

// Write PLR now to update the z axis value
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));

TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_STATUS));

#ifdef ACTION_ON_RESUMED
Expand Down

0 comments on commit 4ee717f

Please sign in to comment.