bltouch: Improve handling of low pin_move_time configuration
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
2b3cd8db7f
commit
63311b2348
|
@ -143,7 +143,8 @@ class BLTouchEndstopWrapper:
|
||||||
def home_prepare(self):
|
def home_prepare(self):
|
||||||
self.test_sensor()
|
self.test_sensor()
|
||||||
self.sync_print_time()
|
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.send_cmd(None)
|
||||||
self.sync_print_time()
|
self.sync_print_time()
|
||||||
self.mcu_endstop.home_prepare()
|
self.mcu_endstop.home_prepare()
|
||||||
|
|
Loading…
Reference in New Issue