aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-12-05 12:13:09 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-12-06 18:35:51 -0500
commit7932de11a7c1679b867039ff4c4bd99d1435dd7a (patch)
treeeb7a9d612c596e834047a76cef7679f941c5efc8 /klippy/mcu.py
parentbc9cbc8133d96cba2fa959d0c246f3839d2dc12e (diff)
downloadkutter-7932de11a7c1679b867039ff4c4bd99d1435dd7a.tar.gz
kutter-7932de11a7c1679b867039ff4c4bd99d1435dd7a.tar.xz
kutter-7932de11a7c1679b867039ff4c4bd99d1435dd7a.zip
mcu: Make sure all endstop objects are disabled on a reconnect
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index e2bd222d..e54c237c 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -153,6 +153,9 @@ class MCU_endstop:
self._mcu.add_config_cmd(
"config_end_stop oid=%d pin=%s pull_up=%d stepper_count=%d" % (
self._oid, self._pin, self._pullup, len(self._steppers)))
+ self._mcu.add_config_cmd(
+ "end_stop_home oid=%d clock=0 sample_ticks=0 sample_count=0"
+ " rest_ticks=0 pin_value=0" % (self._oid,), is_init=True)
for i, s in enumerate(self._steppers):
self._mcu.add_config_cmd(
"end_stop_set_stepper oid=%d pos=%d stepper_oid=%d" % (