Skip to content
Snippets Groups Projects
Unverified Commit 2e33c3bd authored by Scott Lahteine's avatar Scott Lahteine Committed by GitHub
Browse files

Merge pull request #8270 from studiodyne/studiodyne-fw

 fwretract bug/mistake + suggestion
parents 7de8a667 d295f984
Branches
Tags
Loading
...@@ -153,7 +153,7 @@ void FWRetract::retract(const bool retracting ...@@ -153,7 +153,7 @@ 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) {
current_position[Z_AXIS] -= retract_zlift; // Pretend current pos is lower. Next move raises Z. current_position[Z_AXIS] += retract_zlift; // Pretend current pos is lower. Next move raises Z.
SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position
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(); // Raise up to the old current pos prepare_move_to_destination(); // Raise up to the old current pos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment