From 2b49f8ee653843617d9251cb031854ac653ce18d Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 29 May 2018 23:40:16 -0500 Subject: [PATCH] Fix the Z un-hop on G11 Co-Authored-By: zarthcode --- Marlin/fwretract.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/fwretract.cpp b/Marlin/fwretract.cpp index c77337b12..997e49a7f 100644 --- a/Marlin/fwretract.cpp +++ b/Marlin/fwretract.cpp @@ -153,7 +153,8 @@ void FWRetract::retract(const bool retracting else { // If a hop was done and Z hasn't changed, undo the Z hop if (hop_amount) { - destination[Z_AXIS] -= hop_amount; // Move back down by the total hop amount + current_position[Z_AXIS] += hop_amount; // Restore the actual Z position + SYNC_PLAN_POSITION_KINEMATIC(); // Unspoof the position planner feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max prepare_move_to_destination(); // Lower Z, set_current_to_destination hop_amount = 0.0; // Clear the hop amount