gcode: Add a "STATUS" command

Add a status command that will report the current printer status.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-12-21 11:33:03 -05:00
parent 4f087c331c
commit 219796ef4e
2 changed files with 22 additions and 7 deletions

View File

@@ -153,7 +153,7 @@ class Printer:
self.build_config()
self.validate_config()
self.gcode.set_printer_ready(True)
self.state_message = "Running"
self.state_message = "Printer is ready"
except ConfigParser.Error, e:
logging.exception("Config error")
self.state_message = "%s%s" % (str(e), message_restart)