|
|
|
|
153
|
else {
|
153
|
else {
|
154
|
// If a hop was done and Z hasn't changed, undo the Z hop
|
154
|
// If a hop was done and Z hasn't changed, undo the Z hop
|
155
|
if (hop_amount) {
|
155
|
if (hop_amount) {
|
156
|
- current_position[Z_AXIS] -= retract_zlift; // Pretend current pos is lower. Next move raises Z.
|
|
|
|
|
156
|
+ current_position[Z_AXIS] += retract_zlift; // Pretend current pos is lower. Next move raises Z.
|
157
|
SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position
|
157
|
SYNC_PLAN_POSITION_KINEMATIC(); // Set the planner to the new position
|
158
|
feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max
|
158
|
feedrate_mm_s = planner.max_feedrate_mm_s[Z_AXIS]; // Z feedrate to max
|
159
|
prepare_move_to_destination(); // Raise up to the old current pos
|
159
|
prepare_move_to_destination(); // Raise up to the old current pos
|