Browse Source

Redundant but faster recovery.enabled test (#14175)

Tanguy Pruvot 6 years ago
parent
commit
8cf5504a34
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/gcode/gcode.cpp

+ 2
- 1
Marlin/src/gcode/gcode.cpp View File

120
 
120
 
121
   #if ENABLED(POWER_LOSS_RECOVERY)
121
   #if ENABLED(POWER_LOSS_RECOVERY)
122
     // Only update power loss recovery on moves with E
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
   #endif
125
   #endif
125
 
126
 
126
   if (parser.linearval('F') > 0)
127
   if (parser.linearval('F') > 0)

Loading…
Cancel
Save