Parcourir la source

Redundant but faster recovery.enabled test (#14175)

Tanguy Pruvot il y a 6 ans
Parent
révision
8cf5504a34
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      Marlin/src/gcode/gcode.cpp

+ 2
- 1
Marlin/src/gcode/gcode.cpp Voir le fichier

@@ -120,7 +120,8 @@ void GcodeSuite::get_destination_from_command() {
120 120
 
121 121
   #if ENABLED(POWER_LOSS_RECOVERY)
122 122
     // Only update power loss recovery on moves with E
123
-    if (seen[E_AXIS] && (seen[X_AXIS] || seen[Y_AXIS]) && IS_SD_PRINTING()) recovery.save();
123
+    if (recovery.enabled && IS_SD_PRINTING() && seen[E_AXIS] && (seen[X_AXIS] || seen[Y_AXIS]))
124
+      recovery.save();
124 125
   #endif
125 126
 
126 127
   if (parser.linearval('F') > 0)

Chargement…
Annuler
Enregistrer