clocksync: Initialize clock_est in connect_file()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-10-12 11:50:06 -04:00
parent cc7c99a4a4
commit 78ba7064a7
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class ClockSync:
def connect_file(self, serial, pace=False):
self.serial = serial
self.mcu_freq = serial.msgparser.get_constant_float('CLOCK_FREQ')
self.clock_est = (0., 0., self.mcu_freq)
freq = 1000000000000.
if pace:
freq = self.mcu_freq