diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-12-05 21:51:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 18:49:14 -0500 |
commit | 7785d3a87db5609956f93742afe538da6f04a839 (patch) | |
tree | f1d18641b0acea347bf9b71cf0f0223b2cf9daea /klippy/cartesian.py | |
parent | 31db4cc7727e6b8ede83212f7ca950d530836c3e (diff) | |
download | kutter-7785d3a87db5609956f93742afe538da6f04a839.tar.gz kutter-7785d3a87db5609956f93742afe538da6f04a839.tar.xz kutter-7785d3a87db5609956f93742afe538da6f04a839.zip |
homing: Pass list of endstops (not steppers) to the homing code
The homing code wants the list of endstops to enable during a homing
operation - it's confusing to pass the steppers.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py index 2f4651ad..a295ee92 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -51,14 +51,14 @@ class CartKinematics: homepos[axis] = s.position_endstop coord = [None, None, None, None] coord[axis] = pos - homing_state.home(list(coord), homepos, [s], homing_speed) + homing_state.home(coord, homepos, s.get_endstops(), homing_speed) # Retract coord[axis] = rpos - homing_state.retract(list(coord), homing_speed) + homing_state.retract(coord, homing_speed) # Home again coord[axis] = r2pos - homing_state.home( - list(coord), homepos, [s], homing_speed/2.0, second_home=True) + homing_state.home(coord, homepos, s.get_endstops(), + homing_speed/2.0, second_home=True) # Set final homed position coord[axis] = s.position_endstop + s.get_homed_offset() homing_state.set_homed_position(coord) |