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.
This commit is contained in:
parent
653eff3b31
commit
88ed232f53
@ -2907,14 +2907,8 @@ inline void gcode_G28() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
feedrate = homing_feedrate[Z_AXIS];
|
feedrate = homing_feedrate[Z_AXIS];
|
||||||
|
line_to_z(z_dest);
|
||||||
#if HAS_BED_PROBE
|
stepper.synchronize();
|
||||||
do_blocking_move_to_z(z_dest);
|
|
||||||
#else
|
|
||||||
line_to_z(z_dest);
|
|
||||||
stepper.synchronize();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
destination[Z_AXIS] = current_position[Z_AXIS] = z_dest;
|
destination[Z_AXIS] = current_position[Z_AXIS] = z_dest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user