From bdfeb54a9d176795b2ffdcf3f6f4b9ab57233db1 Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Mon, 29 Jan 2018 19:35:16 +0000 Subject: [PATCH] Clear retracted status when homing the Z axis --- Marlin/Marlin_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 45ecedb1b..2c6b50133 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -3122,6 +3122,12 @@ static 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]);