From 08874b9c91544c012763766c51b6a0c279972140 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 5 Feb 2018 12:33:29 -0500 Subject: [PATCH] clocksync: Respond faster to clock changes Average clock sync times over approximately 30 seconds instead of 120 seconds so that the clock prediction responds to changes faster. 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 a5ddf619..ce5e42a2 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -7,7 +7,7 @@ import logging, threading, math COMM_TIMEOUT = 3.5 RTT_AGE = .000010 / (60. * 60.) -DECAY = 1. / (2. * 60.) +DECAY = 1. / 30. TRANSMIT_EXTRA = .001 class ClockSync: