Init (stow) BLTouch before X/Y homing (#21192)

This commit is contained in:
ldursw 2021-02-26 20:01:11 -03:00 committed by Scott Lahteine
parent 532dbb8064
commit c9d757fc0e

View File

@ -332,6 +332,7 @@ void GcodeSuite::G28() {
// Raise Z before homing any other axes and z is not already high enough (never lower z) // Raise Z before homing any other axes and z is not already high enough (never lower z)
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before homing) by ", z_homing_height); if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before homing) by ", z_homing_height);
do_z_clearance(z_homing_height); do_z_clearance(z_homing_height);
TERN_(BLTOUCH, bltouch.init());
} }
#if ENABLED(QUICK_HOME) #if ENABLED(QUICK_HOME)
@ -384,7 +385,6 @@ void GcodeSuite::G28() {
stepper.set_separate_multi_axis(false); stepper.set_separate_multi_axis(false);
#endif #endif
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();
} }