浏览代码

Remove HAS_BED_PROBE case in first raise in G28

Differentiating made sense here when we could save a dozen lines of code,
but not for one line.
AnHardt 8 年前
父节点
当前提交
88ed232f53
共有 1 个文件被更改,包括 2 次插入8 次删除
  1. 2
    8
      Marlin/Marlin_main.cpp

+ 2
- 8
Marlin/Marlin_main.cpp 查看文件

@@ -2907,14 +2907,8 @@ inline void gcode_G28() {
2907 2907
           #endif
2908 2908
 
2909 2909
           feedrate = homing_feedrate[Z_AXIS];
2910
-
2911
-          #if HAS_BED_PROBE
2912
-            do_blocking_move_to_z(z_dest);
2913
-          #else
2914
-            line_to_z(z_dest);
2915
-            stepper.synchronize();
2916
-          #endif
2917
-
2910
+          line_to_z(z_dest);
2911
+          stepper.synchronize();
2918 2912
           destination[Z_AXIS] = current_position[Z_AXIS] = z_dest;
2919 2913
         }
2920 2914
       }

正在加载...
取消
保存