Explorar el Código

Save PLR on resume from pause (#19676)

Co-Authored-By: shahab <32130261+SHBnik@users.noreply.github.com>
Scott Lahteine hace 4 años
padre
commit
4ee717f7c4
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      Marlin/src/feature/pause.cpp

+ 7
- 0
Marlin/src/feature/pause.cpp Ver fichero

@@ -61,6 +61,10 @@
61 61
   #include "../libs/buzzer.h"
62 62
 #endif
63 63
 
64
+#if ENABLED(POWER_LOSS_RECOVERY)
65
+  #include "powerloss.h"
66
+#endif
67
+
64 68
 #include "../libs/nozzle.h"
65 69
 #include "pause.h"
66 70
 
@@ -640,6 +644,9 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
640 644
   // Set extruder to saved position
641 645
   planner.set_e_position_mm((destination.e = current_position.e = resume_position.e));
642 646
 
647
+  // Write PLR now to update the z axis value
648
+  TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
649
+
643 650
   TERN_(HAS_LCD_MENU, lcd_pause_show_message(PAUSE_MESSAGE_STATUS));
644 651
 
645 652
   #ifdef ACTION_ON_RESUMED

Loading…
Cancelar
Guardar