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.
pull/1/head
AnHardt 9 years ago
parent
commit
88ed232f53
  1. 10
      Marlin/Marlin_main.cpp

10
Marlin/Marlin_main.cpp

@ -2907,14 +2907,8 @@ inline void gcode_G28() {
#endif
feedrate = homing_feedrate[Z_AXIS];
#if HAS_BED_PROBE
do_blocking_move_to_z(z_dest);
#else
line_to_z(z_dest);
stepper.synchronize();
#endif
line_to_z(z_dest);
stepper.synchronize();
destination[Z_AXIS] = current_position[Z_AXIS] = z_dest;
}
}

Loading…
Cancel
Save