Browse Source

Merge pull request #6656 from FHeilmann/fix_fwretract_pos_z_move

Fix FWRetract with positive z-moves during retracted state
Scott Lahteine 8 years ago
parent
commit
056350d9bf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

3087
     }
3087
     }
3088
     else {
3088
     else {
3089
 
3089
 
3090
-      // If the height hasn't been altered, undo the Z hop
3091
-      if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) {
3090
+      // If the height hasn't been lowered, undo the Z hop
3091
+      if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) {
3092
         // Pretend current position is higher. Z will lower on the next move
3092
         // Pretend current position is higher. Z will lower on the next move
3093
         current_position[Z_AXIS] += retract_zlift;
3093
         current_position[Z_AXIS] += retract_zlift;
3094
         SYNC_PLAN_POSITION_KINEMATIC();
3094
         SYNC_PLAN_POSITION_KINEMATIC();

Loading…
Cancel
Save