|
@ -313,7 +313,7 @@ void GcodeSuite::G28() { |
|
|
home_all = homeX == homeY && homeX == homeZ, // All or None
|
|
|
home_all = homeX == homeY && homeX == homeZ, // All or None
|
|
|
doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ; |
|
|
doX = home_all || homeX, doY = home_all || homeY, doZ = home_all || homeZ; |
|
|
|
|
|
|
|
|
#if Z_HOME_DIR > 0 // If homing away from BED do Z first
|
|
|
#if ENABLED(HOME_Z_FIRST) |
|
|
|
|
|
|
|
|
if (doZ) homeaxis(Z_AXIS); |
|
|
if (doZ) homeaxis(Z_AXIS); |
|
|
|
|
|
|
|
@ -373,18 +373,13 @@ void GcodeSuite::G28() { |
|
|
TERN_(IMPROVE_HOMING_RELIABILITY, end_slow_homing(slow_homing)); |
|
|
TERN_(IMPROVE_HOMING_RELIABILITY, end_slow_homing(slow_homing)); |
|
|
|
|
|
|
|
|
// Home Z last if homing towards the bed
|
|
|
// Home Z last if homing towards the bed
|
|
|
#if Z_HOME_DIR < 0 |
|
|
#if DISABLED(HOME_Z_FIRST) |
|
|
|
|
|
|
|
|
if (doZ) { |
|
|
if (doZ) { |
|
|
TERN_(BLTOUCH, bltouch.init()); |
|
|
TERN_(BLTOUCH, bltouch.init()); |
|
|
|
|
|
|
|
|
TERN(Z_SAFE_HOMING, home_z_safely(), homeaxis(Z_AXIS)); |
|
|
TERN(Z_SAFE_HOMING, home_z_safely(), homeaxis(Z_AXIS)); |
|
|
|
|
|
|
|
|
probe.move_z_after_homing(); |
|
|
probe.move_z_after_homing(); |
|
|
|
|
|
} |
|
|
} // doZ
|
|
|
#endif |
|
|
|
|
|
|
|
|
#endif // Z_HOME_DIR < 0
|
|
|
|
|
|
|
|
|
|
|
|
sync_plan_position(); |
|
|
sync_plan_position(); |
|
|
|
|
|
|
|
|