Selaa lähdekoodia

Fix FWRetract with positive z-moves during retracted state

Florian Heilmann 8 vuotta sitten
vanhempi
commit
fe96376a73
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -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…
Peruuta
Tallenna