diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 13:01:52 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-02-27 13:01:52 -0500 |
commit | 65d6253fb8bab55a6fc98d41067fa470be400114 (patch) | |
tree | f3f92d74591f17e99368af7e230deab3362062f3 /klippy/clocksync.py | |
parent | e5e079faf29ee2aca056e7548b11a12d8905794b (diff) | |
download | kutter-65d6253fb8bab55a6fc98d41067fa470be400114.tar.gz kutter-65d6253fb8bab55a6fc98d41067fa470be400114.tar.xz kutter-65d6253fb8bab55a6fc98d41067fa470be400114.zip |
clocksync: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/clocksync.py')
-rw-r--r-- | klippy/clocksync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/clocksync.py b/klippy/clocksync.py index 07e78513..72195a19 100644 --- a/klippy/clocksync.py +++ b/klippy/clocksync.py @@ -13,7 +13,7 @@ class ClockSync: def __init__(self, reactor): self.reactor = reactor self.serial = None - self.get_clock_timer = self.reactor.register_timer(self._get_clock_event) + self.get_clock_timer = reactor.register_timer(self._get_clock_event) self.get_clock_cmd = None self.queries_pending = 0 self.mcu_freq = 1. @@ -87,7 +87,7 @@ class ClockSync: clock_diff2 = (clock - exp_clock)**2 if (clock_diff2 > 25. * self.prediction_variance and clock_diff2 > (.000500 * self.mcu_freq)**2): - if clock > exp_clock and sent_time < self.last_prediction_time + 10.: + if clock > exp_clock and sent_time < self.last_prediction_time+10.: logging.debug("Ignoring clock sample %.3f:" " freq=%d diff=%d stddev=%.3f", sent_time, self.clock_est[2], clock - exp_clock, |