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/mcu.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/mcu.py')
-rw-r--r-- | klippy/mcu.py | 2 |
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( |