Browse Source

Fix FWRetract with positive z-moves during retracted state

Florian Heilmann 8 years ago
parent
commit
fe96376a73
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -3071,8 +3071,8 @@ static void homeaxis(const AxisEnum axis) {
3071 3071
     }
3072 3072
     else {
3073 3073
 
3074
-      // If the height hasn't been altered, undo the Z hop
3075
-      if (retract_zlift > 0.01 && hop_height == current_position[Z_AXIS]) {
3074
+      // If the height hasn't been lowered, undo the Z hop
3075
+      if (retract_zlift > 0.01 && hop_height <= current_position[Z_AXIS]) {
3076 3076
         // Pretend current position is higher. Z will lower on the next move
3077 3077
         current_position[Z_AXIS] += retract_zlift;
3078 3078
         SYNC_PLAN_POSITION_KINEMATIC();

Loading…
Cancel
Save