mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 22:54:10 -06:00
klippy: Run the MCU connect code within the reactor
Setup the reactor and run the MCU connection code as a timer within the reactor. The connection code will make use of reactor greenlets so that it can wait for events during the connection phase. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
bafe796eeb
commit
5d805ba550
4 changed files with 28 additions and 24 deletions
|
@ -59,7 +59,6 @@ class GCodeParser:
|
|||
for h in handlers)
|
||||
def run(self):
|
||||
self.fd_handle = self.reactor.register_fd(self.fd, self.process_data)
|
||||
self.reactor.run()
|
||||
def finish(self):
|
||||
self.reactor.end()
|
||||
self.toolhead.motor_off()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue