Browse Source

Clear retracted status when homing the Z axis

Thomas Moore 7 years ago
parent
commit
7035471982
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      Marlin/src/module/motion.cpp

+ 10
- 0
Marlin/src/module/motion.cpp View File

55
   #include "../feature/tmc_util.h"
55
   #include "../feature/tmc_util.h"
56
 #endif
56
 #endif
57
 
57
 
58
+#if ENABLED(FWRETRACT)
59
+  #include "../feature/fwretract.h"
60
+#endif
61
+
58
 #define XYZ_CONSTS(type, array, CONFIG) const PROGMEM type array##_P[XYZ] = { X_##CONFIG, Y_##CONFIG, Z_##CONFIG }
62
 #define XYZ_CONSTS(type, array, CONFIG) const PROGMEM type array##_P[XYZ] = { X_##CONFIG, Y_##CONFIG, Z_##CONFIG }
59
 
63
 
60
 XYZ_CONSTS(float, base_min_pos,   MIN_POS);
64
 XYZ_CONSTS(float, base_min_pos,   MIN_POS);
1285
     if (axis == Z_AXIS && STOW_PROBE()) return;
1289
     if (axis == Z_AXIS && STOW_PROBE()) return;
1286
   #endif
1290
   #endif
1287
 
1291
 
1292
+  // Clear retracted status if homing the Z axis
1293
+  #if ENABLED(FWRETRACT)
1294
+    if (axis == Z_AXIS)
1295
+      for (uint8_t i = 0; i < EXTRUDERS; i++) fwretract.retracted[i] = false;
1296
+  #endif
1297
+
1288
   #if ENABLED(DEBUG_LEVELING_FEATURE)
1298
   #if ENABLED(DEBUG_LEVELING_FEATURE)
1289
     if (DEBUGGING(LEVELING)) {
1299
     if (DEBUGGING(LEVELING)) {
1290
       SERIAL_ECHOPAIR("<<< homeaxis(", axis_codes[axis]);
1300
       SERIAL_ECHOPAIR("<<< homeaxis(", axis_codes[axis]);

Loading…
Cancel
Save