Don't deploy/stow the probe if z-min-endstop is used for homing
Don't deploy/stow the probe if z-min-endstop is used for homing. Don't apply `zprobe_zoffset` if probe was not used.
This commit is contained in:
parent
6121c9018a
commit
7bcab26f2a
@ -1525,7 +1525,7 @@ static void set_axis_is_at_home(AxisEnum axis) {
|
|||||||
current_position[axis] = base_home_pos(axis) + home_offset[axis];
|
current_position[axis] = base_home_pos(axis) + home_offset[axis];
|
||||||
update_software_endstops(axis);
|
update_software_endstops(axis);
|
||||||
|
|
||||||
#if HAS_BED_PROBE && Z_HOME_DIR < 0
|
#if HAS_BED_PROBE && Z_HOME_DIR < 0 && DISABLED(Z_MIN_PROBE_ENDSTOP)
|
||||||
if (axis == Z_AXIS) {
|
if (axis == Z_AXIS) {
|
||||||
current_position[Z_AXIS] -= zprobe_zoffset;
|
current_position[Z_AXIS] -= zprobe_zoffset;
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
@ -2362,7 +2362,7 @@ static void homeaxis(AxisEnum axis) {
|
|||||||
home_dir(axis);
|
home_dir(axis);
|
||||||
|
|
||||||
// Homing Z towards the bed? Deploy the Z probe or endstop.
|
// Homing Z towards the bed? Deploy the Z probe or endstop.
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE && DISABLED(Z_MIN_PROBE_ENDSTOP)
|
||||||
if (axis == Z_AXIS && axis_home_dir < 0) {
|
if (axis == Z_AXIS && axis_home_dir < 0) {
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
||||||
@ -2463,7 +2463,7 @@ static void homeaxis(AxisEnum axis) {
|
|||||||
axis_homed[axis] = true;
|
axis_homed[axis] = true;
|
||||||
|
|
||||||
// Put away the Z probe
|
// Put away the Z probe
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE && DISABLED(Z_MIN_PROBE_ENDSTOP)
|
||||||
if (axis == Z_AXIS && axis_home_dir < 0) {
|
if (axis == Z_AXIS && axis_home_dir < 0) {
|
||||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
||||||
|
Loading…
Reference in New Issue
Block a user