[1.1.x] bltouch home refinements (#11398)
Just create a better functions call logic flow
This commit is contained in:
parent
e1bef0ea79
commit
30839a6ba6
@ -3056,12 +3056,7 @@ static void homeaxis(const AxisEnum axis) {
|
|||||||
|
|
||||||
// Homing Z towards the bed? Deploy the Z probe or endstop.
|
// Homing Z towards the bed? Deploy the Z probe or endstop.
|
||||||
#if HOMING_Z_WITH_PROBE
|
#if HOMING_Z_WITH_PROBE
|
||||||
if (axis == Z_AXIS) {
|
if (axis == Z_AXIS && DEPLOY_PROBE()) return;
|
||||||
if (DEPLOY_PROBE()) return;
|
|
||||||
#if ENABLED(BLTOUCH)
|
|
||||||
if (set_bltouch_deployed(true)) return;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set flags for X, Y, Z motor locking
|
// Set flags for X, Y, Z motor locking
|
||||||
@ -3085,6 +3080,12 @@ static void homeaxis(const AxisEnum axis) {
|
|||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Home 1 Fast:");
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Home 1 Fast:");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
|
||||||
|
// BLTOUCH needs to be deployed every time
|
||||||
|
if (axis == Z_AXIS && set_bltouch_deployed(true)) return;
|
||||||
|
#endif
|
||||||
|
|
||||||
do_homing_move(axis, 1.5f * max_length(axis) * axis_home_dir);
|
do_homing_move(axis, 1.5f * max_length(axis) * axis_home_dir);
|
||||||
|
|
||||||
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
|
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
|
||||||
@ -3123,6 +3124,11 @@ static void homeaxis(const AxisEnum axis) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
do_homing_move(axis, 2 * bump, get_homing_bump_feedrate(axis));
|
do_homing_move(axis, 2 * bump, get_homing_bump_feedrate(axis));
|
||||||
|
|
||||||
|
#if HOMING_Z_WITH_PROBE && ENABLED(BLTOUCH)
|
||||||
|
// BLTOUCH needs to be stowed after trigger to rearm itself
|
||||||
|
if (axis == Z_AXIS) set_bltouch_deployed(false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3202,12 +3208,7 @@ static void homeaxis(const AxisEnum axis) {
|
|||||||
|
|
||||||
// Put away the Z probe
|
// Put away the Z probe
|
||||||
#if HOMING_Z_WITH_PROBE
|
#if HOMING_Z_WITH_PROBE
|
||||||
if (axis == Z_AXIS) {
|
if (axis == Z_AXIS && STOW_PROBE()) return;
|
||||||
#if ENABLED(BLTOUCH)
|
|
||||||
if (set_bltouch_deployed(false)) return;
|
|
||||||
#endif
|
|
||||||
if (STOW_PROBE()) return;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Clear retracted status if homing the Z axis
|
// Clear retracted status if homing the Z axis
|
||||||
|
Loading…
x
Reference in New Issue
Block a user