diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-12 11:50:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-10-12 11:59:27 -0400 |
commit | 78ba7064a73448d64a32796a2ebf3e8fd2d9beab (patch) | |
tree | 436e7927da20f7266f2aada6f0ccf519219c03ce /klippy/clocksync.py | |
parent | cc7c99a4a415fb3c4fa8ef947d12098c13b40d12 (diff) | |
download | kutter-78ba7064a73448d64a32796a2ebf3e8fd2d9beab.tar.gz kutter-78ba7064a73448d64a32796a2ebf3e8fd2d9beab.tar.xz kutter-78ba7064a73448d64a32796a2ebf3e8fd2d9beab.zip |
clocksync: Initialize clock_est in connect_file()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/clocksync.py')
-rw-r--r-- | klippy/clocksync.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/clocksync.py b/klippy/clocksync.py index 0bbde8c9..45afa2af 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -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 |