diff --git a/klippy/clocksync.py b/klippy/clocksync.py
index 07e78513a..72195a19c 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,