Переглянути джерело

Merge pull request #6656 from FHeilmann/fix_fwretract_pos_z_move

Fix FWRetract with positive z-moves during retracted state
Scott Lahteine 8 роки тому
джерело
коміт
056350d9bf
1 змінених файлів з 2 додано та 2 видалено
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Переглянути файл

@@ -3087,8 +3087,8 @@ static void homeaxis(const AxisEnum axis) {
3087 3087
     }
3088 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 3092
         // Pretend current position is higher. Z will lower on the next move
3093 3093
         current_position[Z_AXIS] += retract_zlift;
3094 3094
         SYNC_PLAN_POSITION_KINEMATIC();

Завантаження…
Відмінити
Зберегти