From 77fea562c45bcf0808587a2a787d37703b4620f7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 13 Oct 2017 21:07:32 -0400 Subject: [PATCH] clocksync: Start with adjusted_freq of 1.0 Avoid setting adjusted_freq to 0.0 as that can cause divide by zero failures at startup. Signed-off-by: Kevin O'Connor --- klippy/clocksync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/clocksync.py b/klippy/clocksync.py index 45afa2af..fdd6cbcd 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -164,7 +164,7 @@ class SecondarySync(ClockSync): def __init__(self, reactor, main_sync): ClockSync.__init__(self, reactor) self.main_sync = main_sync - self.clock_adj = (0., 0.) + self.clock_adj = (0., 1.) def connect(self, serial): ClockSync.connect(self, serial) self.clock_adj = (0., self.mcu_freq)