aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-28 13:14:56 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-29 21:54:45 -0500
commit5d805ba55059750e79c8b507d164c55a14c6d737 (patch)
tree83342573f394dd96e14e1b2d6433caf495373c30 /klippy/gcode.py
parentbafe796eeb70703ea44a368614f3cc5be0898b45 (diff)
downloadkutter-5d805ba55059750e79c8b507d164c55a14c6d737.tar.gz
kutter-5d805ba55059750e79c8b507d164c55a14c6d737.tar.xz
kutter-5d805ba55059750e79c8b507d164c55a14c6d737.zip
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>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 2c57ed49..e4798159 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -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()