Merge pull request #9390 from tcm0116/1.1.x-retract

[1.1.x] Clear retracted status when homing the Z axis
This commit is contained in:
Scott Lahteine 2018-02-01 23:36:53 -06:00 committed by GitHub
commit 0a10d010b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3057,6 +3057,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]);