From 63311b2348d0e5b7bb396a58f6adeaa5a8424381 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 14 Sep 2019 15:16:26 -0400 Subject: [PATCH] bltouch: Improve handling of low pin_move_time configuration Signed-off-by: Kevin O'Connor --- klippy/extras/bltouch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index 6a7974b6..52c6586d 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -143,7 +143,8 @@ class BLTouchEndstopWrapper: def home_prepare(self): self.test_sensor() self.sync_print_time() - self.send_cmd('pin_down', duration=self.pin_move_time - MIN_CMD_TIME) + duration = max(MIN_CMD_TIME, self.pin_move_time - MIN_CMD_TIME) + self.send_cmd('pin_down', duration=duration) self.send_cmd(None) self.sync_print_time() self.mcu_endstop.home_prepare()