aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/clocksync.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-06-20 17:36:46 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-06-21 18:14:00 -0400
commit647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07 (patch)
tree791812af4deebc59fb777c2311dc3cd52ec6cfce /klippy/clocksync.py
parentdaadb36cb4962c17afae0ad9c1a45083ee0883ff (diff)
downloadkutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.tar.gz
kutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.tar.xz
kutter-647f1ee2e0d230b9a2c580e5335b90e1c9cd9c07.zip
serialhdl: Rename register_callback() to register_response()
Rename the method and use that name in the mcu class as well. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/clocksync.py')
-rw-r--r--klippy/clocksync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/clocksync.py b/klippy/clocksync.py
index 72195a19..06835618 100644
--- a/klippy/clocksync.py
+++ b/klippy/clocksync.py
@@ -44,7 +44,7 @@ class ClockSync:
params = self.get_clock_cmd.send_with_response(response='clock')
self._handle_clock(params)
self.reactor.pause(0.100)
- serial.register_callback(self._handle_clock, 'clock')
+ serial.register_response(self._handle_clock, 'clock')
self.reactor.update_timer(self.get_clock_timer, self.reactor.NOW)
def connect_file(self, serial, pace=False):
self.serial = serial