From 7932de11a7c1679b867039ff4c4bd99d1435dd7a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 5 Dec 2017 12:13:09 -0500 Subject: [PATCH] mcu: Make sure all endstop objects are disabled on a reconnect Signed-off-by: Kevin O'Connor --- klippy/mcu.py | 3 +++ 1 file changed, 3 insertions(+) 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" % (