Browse Source

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 years ago
parent
commit
88ed232f53
1 changed files with 2 additions and 8 deletions
  1. 2
    8
      Marlin/Marlin_main.cpp

+ 2
- 8
Marlin/Marlin_main.cpp View File

@@ -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
       }

Loading…
Cancel
Save