Ver código fonte

Fix power loss recovery with SINGLENOZZLE (#14033)

GUEST.it 6 anos atrás
pai
commit
7907eec04c

+ 5
- 5
Marlin/src/feature/power_loss_recovery.cpp Ver arquivo

170
     #endif
170
     #endif
171
     info.feedrate = uint16_t(feedrate_mm_s * 60.0f);
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
     #endif
175
     #endif
176
 
176
 
177
     HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target;
177
     HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target;
282
 
282
 
283
   // Select the previously active tool (with no_move)
283
   // Select the previously active tool (with no_move)
284
   #if EXTRUDERS > 1
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
     gcode.process_subcommands_now(cmd);
286
     gcode.process_subcommands_now(cmd);
287
   #endif
287
   #endif
288
 
288
 
443
 
443
 
444
         DEBUG_ECHOLNPAIR("feedrate: ", info.feedrate);
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
         #endif
448
         #endif
449
 
449
 
450
         DEBUG_ECHOPGM("target_temperature: ");
450
         DEBUG_ECHOPGM("target_temperature: ");

+ 2
- 2
Marlin/src/feature/power_loss_recovery.h Ver arquivo

51
 
51
 
52
   uint16_t feedrate;
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
   #endif
56
   #endif
57
 
57
 
58
   int16_t target_temperature[HOTENDS];
58
   int16_t target_temperature[HOTENDS];

Carregando…
Cancelar
Salvar