aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-05 15:30:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-04-03 17:27:10 -0400
commit57f279677fb7a609af81bdcd3aaf967d3ee5a949 (patch)
treeb13dfe01728ab13ea588a1e3fa1d981ae525d1ac /klippy/stepper.py
parentfff73c7735618923b865fc93b3187ff323f2a57e (diff)
downloadkutter-57f279677fb7a609af81bdcd3aaf967d3ee5a949.tar.gz
kutter-57f279677fb7a609af81bdcd3aaf967d3ee5a949.tar.xz
kutter-57f279677fb7a609af81bdcd3aaf967d3ee5a949.zip
endstop: Support halting more than one stepper on trigger
Extend the endstop code so that more than one stepper can be halted during endstop homing. Some kinematic setups (eg, corexy) require an endstop to support this. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index e362dee4..eb8c2400 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -47,7 +47,8 @@ class PrinterStepper:
if enable_pin is not None:
self.mcu_enable = mcu.create_digital_out(enable_pin, 0)
if endstop_pin is not None:
- self.mcu_endstop = mcu.create_endstop(endstop_pin, self.mcu_stepper)
+ self.mcu_endstop = mcu.create_endstop(endstop_pin)
+ self.mcu_endstop.add_stepper(self.mcu_stepper)
self.position_min = config.getfloat('position_min', 0.)
self.position_endstop = config.getfloat('position_endstop')
self.position_max = config.getfloat('position_max', 0.)