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:
Kevin O'Connor 2019-10-30 14:04:10 -04:00
parent 739583a21b
commit 40e2c64c82
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ClockSync:
for i in range(8): for i in range(8):
params = serial.send_with_response('get_clock', 'clock') params = serial.send_with_response('get_clock', 'clock')
self._handle_clock(params) 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.get_clock_cmd = serial.get_msgparser().create_command('get_clock')
self.cmd_queue = serial.alloc_command_queue() self.cmd_queue = serial.alloc_command_queue()
serial.register_response(self._handle_clock, 'clock') serial.register_response(self._handle_clock, 'clock')