From 7785d3a87db5609956f93742afe538da6f04a839 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 5 Dec 2017 21:51:44 -0500 Subject: 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 --- klippy/corexy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'klippy/corexy.py') diff --git a/klippy/corexy.py b/klippy/corexy.py index dd62cf1c..cd51410b 100644 --- a/klippy/corexy.py +++ b/klippy/corexy.py @@ -59,14 +59,14 @@ class CoreXYKinematics: 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) if axis == 2: # Support endstop phase detection on Z axis coord[axis] = s.position_endstop + s.get_homed_offset() -- cgit v1.2.3-70-g09d2