Skip to content
Snippets Groups Projects
Commit 21d812d5 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix the Z un-hop on G11

parent d3c47300
Branches
Tags
No related merge requests found
...@@ -154,7 +154,8 @@ void FWRetract::retract(const bool retracting ...@@ -154,7 +154,8 @@ void FWRetract::retract(const bool retracting
else { else {
// If a hop was done and Z hasn't changed, undo the Z hop // If a hop was done and Z hasn't changed, undo the Z hop
if (hop_amount) { 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 feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max
prepare_move_to_destination(); // Lower Z, set_current_to_destination prepare_move_to_destination(); // Lower Z, set_current_to_destination
hop_amount = 0.0; // Clear the hop amount hop_amount = 0.0; // Clear the hop amount
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment