mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 18:28:00 -06:00
gcode: Support reading from gcode input before mcu is ready
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6ebb1a68cb
commit
dbdf1e137e
3 changed files with 34 additions and 23 deletions
|
@ -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)
|
||||
|
||||
|
||||
######################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue