From fe96376a73532c29c265bc3f572a53c4f3ef0b40 Mon Sep 17 00:00:00 2001 From: Florian Heilmann Date: Tue, 9 May 2017 13:54:57 +0200 Subject: [PATCH] Fix FWRetract with positive z-moves during retracted state --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 2d685e311..7bdc39e7f 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -3071,8 +3071,8 @@ static void homeaxis(const AxisEnum axis) { } else { - // If the height hasn't been altered, undo the Z hop - if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) { + // If the height hasn't been lowered, undo the Z hop + if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) { // Pretend current position is higher. Z will lower on the next move current_position[Z_AXIS] += retract_zlift; SYNC_PLAN_POSITION_KINEMATIC();