aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-12-05 21:51:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-12-06 18:49:14 -0500
commit7785d3a87db5609956f93742afe538da6f04a839 (patch)
treef1d18641b0acea347bf9b71cf0f0223b2cf9daea /klippy/mcu.py
parent31db4cc7727e6b8ede83212f7ca950d530836c3e (diff)
downloadkutter-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/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 93474b1a..aa4f6297 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -150,6 +150,8 @@ class MCU_endstop:
if stepper.get_mcu() is not self._mcu:
raise pins.error("Endstop and stepper must be on the same mcu")
self._steppers.append(stepper)
+ def get_steppers(self):
+ return list(self._steppers)
def build_config(self):
self._oid = self._mcu.create_oid()
self._mcu.add_config_cmd(