clocksync: Initialize clock_est in connect_file()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
cc7c99a4a4
commit
78ba7064a7
|
@ -50,6 +50,7 @@ class ClockSync:
|
||||||
def connect_file(self, serial, pace=False):
|
def connect_file(self, serial, pace=False):
|
||||||
self.serial = serial
|
self.serial = serial
|
||||||
self.mcu_freq = serial.msgparser.get_constant_float('CLOCK_FREQ')
|
self.mcu_freq = serial.msgparser.get_constant_float('CLOCK_FREQ')
|
||||||
|
self.clock_est = (0., 0., self.mcu_freq)
|
||||||
freq = 1000000000000.
|
freq = 1000000000000.
|
||||||
if pace:
|
if pace:
|
||||||
freq = self.mcu_freq
|
freq = self.mcu_freq
|
||||||
|
|
Loading…
Reference in New Issue