Browse Source

Fix PLR condition saving retract

Scott Lahteine 5 years ago
parent
commit
62b875f918
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/feature/power_loss_recovery.cpp

+ 2
- 1
Marlin/src/feature/power_loss_recovery.cpp View File

327
   // Restore retract and hop state
327
   // Restore retract and hop state
328
   #if ENABLED(FWRETRACT)
328
   #if ENABLED(FWRETRACT)
329
     for (uint8_t e = 0; e < EXTRUDERS; e++) {
329
     for (uint8_t e = 0; e < EXTRUDERS; e++) {
330
-      if (info.retract[e] != 0.0)
330
+      if (info.retract[e] != 0.0) {
331
         fwretract.current_retract[e] = info.retract[e];
331
         fwretract.current_retract[e] = info.retract[e];
332
         fwretract.retracted[e] = true;
332
         fwretract.retracted[e] = true;
333
+      }
333
     }
334
     }
334
     fwretract.current_hop = info.retract_hop;
335
     fwretract.current_hop = info.retract_hop;
335
   #endif
336
   #endif

Loading…
Cancel
Save