From 07554250ad3f46898b6702f26a65dc4ff7918b53 Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Thu, 10 Dec 2020 12:35:44 -0500 Subject: [PATCH] screen: Catch "startup" state from moonraker --- screen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/screen.py b/screen.py index cb5a4233..7ffafc7f 100644 --- a/screen.py +++ b/screen.py @@ -454,8 +454,10 @@ class KlipperScreen(Gtk.Window): else: self.files.add_timeout() - if printer_info['result']['state'] in ("error","shutdown"): - if "FIRMWARE_RESTART" in printer_info['result']['state_message']: + if printer_info['result']['state'] in ("error","shutdown","startup"): + if printer_info['result']['state'] == "startup": + self.printer_initializing(_("Klipper is attempting to start")) + elif "FIRMWARE_RESTART" in printer_info['result']['state_message']: self.printer_initializing( _("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.") )