Przeglądaj źródła

Merge pull request #9384 from tcm0116/2.0.x-retract

[2.0.x] Clear retracted status when homing the Z axis
Scott Lahteine 7 lat temu
rodzic
commit
f8227abf1c
No account linked to committer's email address
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10
    0
      Marlin/src/module/motion.cpp

+ 10
- 0
Marlin/src/module/motion.cpp Wyświetl plik

@@ -55,6 +55,10 @@
55 55
   #include "../feature/tmc_util.h"
56 56
 #endif
57 57
 
58
+#if ENABLED(FWRETRACT)
59
+  #include "../feature/fwretract.h"
60
+#endif
61
+
58 62
 #define XYZ_CONSTS(type, array, CONFIG) const PROGMEM type array##_P[XYZ] = { X_##CONFIG, Y_##CONFIG, Z_##CONFIG }
59 63
 
60 64
 XYZ_CONSTS(float, base_min_pos,   MIN_POS);
@@ -1285,6 +1289,12 @@ void homeaxis(const AxisEnum axis) {
1285 1289
     if (axis == Z_AXIS && STOW_PROBE()) return;
1286 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 1298
   #if ENABLED(DEBUG_LEVELING_FEATURE)
1289 1299
     if (DEBUGGING(LEVELING)) {
1290 1300
       SERIAL_ECHOPAIR("<<< homeaxis(", axis_codes[axis]);

Ładowanie…
Anuluj
Zapisz