gcode: Support reading from gcode input before mcu is ready

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-11-22 19:38:51 -05:00
parent 6ebb1a68cb
commit dbdf1e137e
3 changed files with 34 additions and 23 deletions

View file

@ -81,7 +81,7 @@ class Printer:
self.mcu.connect_file(self.debugoutput, self.dictionary)
self.mcu.connect()
self.build_config()
self.gcode.run()
self.gcode.set_printer_ready(True)
self.reactor.unregister_timer(self.connect_timer)
return self.reactor.NEVER
def run(self):
@ -90,8 +90,8 @@ class Printer:
self.stats(time.time())
self.mcu.disconnect()
self.stats(time.time())
def shutdown(self):
self.gcode.shutdown()
def note_shutdown(self):
self.gcode.set_printer_ready(False)
######################################################################