screen: Better error display for klippy
This commit is contained in:
parent
136ecf79fb
commit
5c1d5a1825
17
screen.py
17
screen.py
@ -474,10 +474,19 @@ class KlipperScreen(Gtk.Window):
|
|||||||
if printer_info['result']['state'] in ("error","shutdown","startup"):
|
if printer_info['result']['state'] in ("error","shutdown","startup"):
|
||||||
if printer_info['result']['state'] == "startup":
|
if printer_info['result']['state'] == "startup":
|
||||||
self.printer_initializing(_("Klipper is attempting to start"))
|
self.printer_initializing(_("Klipper is attempting to start"))
|
||||||
elif "FIRMWARE_RESTART" in printer_info['result']['state_message']:
|
elif printer_info['result']['state'] == "error":
|
||||||
self.printer_initializing(
|
if "FIRMWARE_RESTART" in printer_info['result']['state_message']:
|
||||||
_("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.")
|
self.printer_initializing(
|
||||||
)
|
_("Klipper has encountered an error.\nIssue a FIRMWARE_RESTART to attempt fixing the issue.")
|
||||||
|
)
|
||||||
|
elif "micro-controller" in printer_info['result']['state_message']:
|
||||||
|
self.printer_initializing(
|
||||||
|
_("Klipper has encountered an error with the micro-controller.\nPlease recompile and flash.")
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.printer_initializing(
|
||||||
|
_("Klipper has encountered an error.")
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.printer_initializing(_("Klipper has shutdown"))
|
self.printer_initializing(_("Klipper has shutdown"))
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user