瀏覽代碼

Fix Power-Loss Save on Pause (#21749)

tobuh 4 年之前
父節點
當前提交
05c25b8cdb
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      Marlin/src/gcode/feature/pause/M125.cpp

+ 2
- 1
Marlin/src/gcode/feature/pause/M125.cpp 查看文件

@@ -78,8 +78,9 @@ void GcodeSuite::M125() {
78 78
   // If possible, show an LCD prompt with the 'P' flag
79 79
   const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
80 80
 
81
+  TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
82
+
81 83
   if (pause_print(retract, park_point, 0, show_lcd)) {
82
-    TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
83 84
     if (ENABLED(EXTENSIBLE_UI) || !sd_printing || show_lcd) {
84 85
       wait_for_confirmation(false, 0);
85 86
       resume_print(0, 0, -retract, 0);

Loading…
取消
儲存