From f3914a432e33687b5a34ef2eafb7cd40cb8d4ad0 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Mon, 29 Jan 2018 19:40:04 +0000 Subject: [PATCH] Clear retracted status when homing the Z axis --- Marlin/src/module/motion.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index 45adc5aa9..a12a98716 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1304,6 +1304,12 @@ void homeaxis(const AxisEnum axis) { if (axis == Z_AXIS && STOW_PROBE()) return; #endif + // Clear retracted status if homing the Z axis + #if ENABLED(FWRETRACT) + if (axis == Z_AXIS) + for (uint8_t i = 0; i < EXTRUDERS; i++) fwretract.retracted[i] = false; + #endif + #if ENABLED(DEBUG_LEVELING_FEATURE) if (DEBUGGING(LEVELING)) { SERIAL_ECHOPAIR("<<< homeaxis(", axis_codes[axis]);