mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 13:17:55 -06:00
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>
This commit is contained in:
parent
31db4cc772
commit
7785d3a87d
6 changed files with 40 additions and 39 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue