From 40e2c64c8208b00fbc2b80187756aee9de2713b0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 30 Oct 2019 14:04:10 -0400 Subject: [PATCH] clocksync: Fix typo in pause() call at connect time The initial clock measurement wasn't properly implementing a small delay between clock queries. Fix the pause() call so there is a small delay between queries. Signed-off-by: Kevin O'Connor --- klippy/clocksync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/clocksync.py b/klippy/clocksync.py index ada09256..868e1654 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -41,7 +41,7 @@ class ClockSync: for i in range(8): params = serial.send_with_response('get_clock', 'clock') self._handle_clock(params) - self.reactor.pause(0.100) + self.reactor.pause(self.reactor.monotonic() + 0.050) self.get_clock_cmd = serial.get_msgparser().create_command('get_clock') self.cmd_queue = serial.alloc_command_queue() serial.register_response(self._handle_clock, 'clock')