gcode: Send proactive state messages

Send a g-code info message on printer state changes.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-09-12 18:46:25 -04:00
parent 91691afdcf
commit 094b9de69e
3 changed files with 13 additions and 6 deletions

View file

@ -139,7 +139,7 @@ class Printer:
self.state_message = message_startup
self.is_shutdown = False
self.run_result = None
self.state_cb = []
self.state_cb = [gc.printer_state]
def get_start_args(self):
return self.start_args
def get_reactor(self):