mirror of https://github.com/Desuuuu/klipper.git
clocksync: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e5e079faf2
commit
65d6253fb8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue