aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-10-06 19:12:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-10-11 11:14:32 -0400
commitd317793171a12bf02fd5e14c2428e1fc0cb3b438 (patch)
tree9797e81072ede1cfe0cc503c87d8cd8e4e86bf8f /klippy
parent930317fa2a40a4424ce0a65bb02f32e6472eeba0 (diff)
downloadkutter-d317793171a12bf02fd5e14c2428e1fc0cb3b438.tar.gz
kutter-d317793171a12bf02fd5e14c2428e1fc0cb3b438.tar.xz
kutter-d317793171a12bf02fd5e14c2428e1fc0cb3b438.zip
bltouch: Add an extra 200ms delay to the initialization process
On a reset, the mcu.py code may have sent an initialization message to the bltouch, which needs time to complete. Add additional time during the bltouch setup to avoid a race with these two times. This avoids some "timer too close" errors that users of fast host machines were reporting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/bltouch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py
index 71c731f2..a73e9ab4 100644
--- a/klippy/extras/bltouch.py
+++ b/klippy/extras/bltouch.py
@@ -78,6 +78,8 @@ class BLTouchEndstopWrapper:
if stepper.is_active_axis('z'):
self.add_stepper(stepper)
def handle_connect(self):
+ self.sync_mcu_print_time()
+ self.next_cmd_time += 0.200
self.set_output_mode(self.output_mode)
try:
self.raise_probe()