From 369fc24e16c53a6ff4a9bd65f7e81bee2958e45c Mon Sep 17 00:00:00 2001 From: Jordan Ruthe Date: Thu, 3 Dec 2020 13:40:25 -0500 Subject: [PATCH] screen: include "error" for state calculation --- screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen.py b/screen.py index 6f2c61e3..84d9d013 100644 --- a/screen.py +++ b/screen.py @@ -408,7 +408,7 @@ class KlipperScreen(Gtk.Window): else: self.files.add_timeout() - if printer_info['result']['state'] == "shutdown": + if printer_info['result']['state'] in ("error","shutdown"): if "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.")