mirror of https://github.com/Desuuuu/klipper.git
klippy: Report "shutdown" category from get_state_message()
Reported by @Arksine. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
fa83b1319c
commit
9d9e5c7edc
|
@ -70,6 +70,8 @@ class Printer:
|
|||
category = "ready"
|
||||
elif self.state_message == message_startup:
|
||||
category = "startup"
|
||||
elif self.in_shutdown_state:
|
||||
category = "shutdown"
|
||||
else:
|
||||
category = "error"
|
||||
return self.state_message, category
|
||||
|
|
Loading…
Reference in New Issue