瀏覽代碼

Fix power loss recovery with SINGLENOZZLE (#14033)

GUEST.it 6 年之前
父節點
當前提交
7907eec04c
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 5
    5
      Marlin/src/feature/power_loss_recovery.cpp
  2. 2
    2
      Marlin/src/feature/power_loss_recovery.h

+ 5
- 5
Marlin/src/feature/power_loss_recovery.cpp 查看文件

@@ -170,8 +170,8 @@ void PrintJobRecovery::save(const bool force/*=false*/, const bool save_queue/*=
170 170
     #endif
171 171
     info.feedrate = uint16_t(feedrate_mm_s * 60.0f);
172 172
 
173
-    #if HOTENDS > 1
174
-      info.active_hotend = active_extruder;
173
+    #if EXTRUDERS > 1
174
+      info.active_extruder = active_extruder;
175 175
     #endif
176 176
 
177 177
     HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target;
@@ -282,7 +282,7 @@ void PrintJobRecovery::resume() {
282 282
 
283 283
   // Select the previously active tool (with no_move)
284 284
   #if EXTRUDERS > 1
285
-    sprintf_P(cmd, PSTR("T%i S"), info.active_hotend);
285
+    sprintf_P(cmd, PSTR("T%i S"), info.active_extruder);
286 286
     gcode.process_subcommands_now(cmd);
287 287
   #endif
288 288
 
@@ -443,8 +443,8 @@ void PrintJobRecovery::resume() {
443 443
 
444 444
         DEBUG_ECHOLNPAIR("feedrate: ", info.feedrate);
445 445
 
446
-        #if HOTENDS > 1
447
-          DEBUG_ECHOLNPAIR("active_hotend: ", int(info.active_hotend));
446
+        #if EXTRUDERS > 1
447
+          DEBUG_ECHOLNPAIR("active_extruder: ", int(info.active_extruder));
448 448
         #endif
449 449
 
450 450
         DEBUG_ECHOPGM("target_temperature: ");

+ 2
- 2
Marlin/src/feature/power_loss_recovery.h 查看文件

@@ -51,8 +51,8 @@ typedef struct {
51 51
 
52 52
   uint16_t feedrate;
53 53
 
54
-  #if HOTENDS > 1
55
-    uint8_t active_hotend;
54
+  #if EXTRUDERS > 1
55
+    uint8_t active_extruder;
56 56
   #endif
57 57
 
58 58
   int16_t target_temperature[HOTENDS];

Loading…
取消
儲存