Browse Source

Merge pull request #8270 from studiodyne/studiodyne-fw

 fwretract bug/mistake + suggestion
Scott Lahteine 7 years ago
parent
commit
2e33c3bdc2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/fwretract.cpp

+ 1
- 1
Marlin/src/feature/fwretract.cpp View File

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

Loading…
Cancel
Save