From 7290ed5f73f4c649099fec5b13cd7c3f7a29b2d2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 3 Mar 2018 21:54:25 -0500 Subject: [PATCH] clocksync: Fix multi-mcu frequency adjustments with long moves Commit 02ae2ab9 had a typo causing the new long move handling logic to not take effect. 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 b31908b6..d572c386 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -203,7 +203,7 @@ class SecondarySync(ClockSync): # Determine sync1_print_time and sync2_print_time sync1_print_time = max(print_time, est_print_time) sync2_print_time = max(sync1_print_time + 4., self.last_sync_time, - 2.5 * (print_time - est_print_time)) + print_time + 2.5 * (print_time - est_print_time)) # Calc sync2_sys_time (inverse of main_sync.estimatated_print_time) sync2_main_clock = sync2_print_time * main_mcu_freq sync2_sys_time = ser_time + (sync2_main_clock - ser_clock) / ser_freq