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:
Kevin O'Connor 2020-08-16 14:08:38 -04:00
parent fa83b1319c
commit 9d9e5c7edc
1 changed files with 2 additions and 0 deletions

View File

@ -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