diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-11-27 17:45:58 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-11-29 21:57:49 -0500 |
commit | 535c7b99b43baf50272c71fcaf52b10f1a707175 (patch) | |
tree | ce25fa2918e650c5da0ce8724f79602dfb370780 /klippy/klippy.py | |
parent | 5d805ba55059750e79c8b507d164c55a14c6d737 (diff) | |
download | kutter-535c7b99b43baf50272c71fcaf52b10f1a707175.tar.gz kutter-535c7b99b43baf50272c71fcaf52b10f1a707175.tar.xz kutter-535c7b99b43baf50272c71fcaf52b10f1a707175.zip |
serialhdl: Make SerialReader.connect() blocking
Use the greenlet mechanism to wait for the connection to come up in
the serial connect() method. This simplifies the calling code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index ed71d699..2f82cfe5 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -85,9 +85,6 @@ class Printer: def connect_file(self, output, dictionary): self.reactor.update_timer(self.stats_timer, self.reactor.NEVER) self.mcu.connect_file(output, dictionary) - self.build_config() - self.gcode.run() - self.reactor.unregister_timer(self.connect_timer) def run(self): self.reactor.run() # If gcode exits, then exit the MCU |