diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-03-03 21:54:25 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-03-03 21:54:25 -0500 |
commit | 7290ed5f73f4c649099fec5b13cd7c3f7a29b2d2 (patch) | |
tree | 49542627571da4bde39bc1c1ac4234396e3067fa /klippy | |
parent | fc60bda4d1d7a7c850146f7fa63836dba9b3d1a3 (diff) | |
download | kutter-7290ed5f73f4c649099fec5b13cd7c3f7a29b2d2.tar.gz kutter-7290ed5f73f4c649099fec5b13cd7c3f7a29b2d2.tar.xz kutter-7290ed5f73f4c649099fec5b13cd7c3f7a29b2d2.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/clocksync.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |