From d317793171a12bf02fd5e14c2428e1fc0cb3b438 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 6 Oct 2020 19:12:55 -0400 Subject: [PATCH] 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 --- klippy/extras/bltouch.py | 2 ++ 1 file changed, 2 insertions(+) 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()