mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
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>
This commit is contained in:
parent
daadb36cb4
commit
647f1ee2e0
6 changed files with 24 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue