Skip to content
Snippets Groups Projects
Commit b64cc932 authored by Giuliano's avatar Giuliano Committed by Scott Lahteine
Browse files

[2.0.x] Fix dual enstop home (#10980)

parent 8a376e6b
Branches
Tags
No related merge requests found
......@@ -1335,7 +1335,7 @@ void homeaxis(const AxisEnum axis) {
if (axis == X_AXIS) {
const float adj = ABS(endstops.x_endstop_adj);
if (pos_dir ? (endstops.x_endstop_adj > 0) : (endstops.x_endstop_adj < 0)) stepper.set_x_lock(true); else stepper.set_x2_lock(true);
do_homing_move(axis, pos_dir ? adj : -adj);
do_homing_move(axis, pos_dir ? -adj : adj);
stepper.set_x_lock(false);
stepper.set_x2_lock(false);
}
......@@ -1344,7 +1344,7 @@ void homeaxis(const AxisEnum axis) {
if (axis == Y_AXIS) {
const float adj = ABS(endstops.y_endstop_adj);
if (pos_dir ? (endstops.y_endstop_adj > 0) : (endstops.y_endstop_adj < 0)) stepper.set_y_lock(true); else stepper.set_y2_lock(true);
do_homing_move(axis, pos_dir ? adj : -adj);
do_homing_move(axis, pos_dir ? -adj : adj);
stepper.set_y_lock(false);
stepper.set_y2_lock(false);
}
......@@ -1353,7 +1353,7 @@ void homeaxis(const AxisEnum axis) {
if (axis == Z_AXIS) {
const float adj = ABS(endstops.z_endstop_adj);
if (pos_dir ? (endstops.z_endstop_adj > 0) : (endstops.z_endstop_adj < 0)) stepper.set_z_lock(true); else stepper.set_z2_lock(true);
do_homing_move(axis, pos_dir ? adj : -adj);
do_homing_move(axis, pos_dir ? -adj : adj);
stepper.set_z_lock(false);
stepper.set_z2_lock(false);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment