mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
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];
|
||||
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) {
|
||||
current_position[Z_AXIS] -= zprobe_zoffset;
|
||||
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
@ -2362,7 +2362,7 @@ static void homeaxis(AxisEnum axis) {
|
||||
home_dir(axis);
|
||||
|
||||
// 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 ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
||||
@ -2463,7 +2463,7 @@ static void homeaxis(AxisEnum axis) {
|
||||
axis_homed[axis] = true;
|
||||
|
||||
// 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 ENABLED(DEBUG_LEVELING_FEATURE)
|
||||
if (DEBUGGING(LEVELING)) SERIAL_ECHOPGM("> ");
|
||||
|
Loading…
Reference in New Issue
Block a user