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 <kevin@koconnor.net>
This commit is contained in:
parent
739583a21b
commit
40e2c64c82
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue