mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-11-15 13:35:52 +00:00
map error text in moonraker as error state
This commit is contained in:
1 parent
a7bde99442
commit
1a31ef0758
1 file changed
+1
-1
@@ -139,7 +139,7 @@ void fetch_printer_data()
|
|||||||
{
|
{
|
||||||
printer_state = PRINTER_STATE_IDLE;
|
printer_state = PRINTER_STATE_IDLE;
|
||||||
}
|
}
|
||||||
else if (strcmp(state, "shutdown") == 0 && printer.state != PRINTER_STATE_ERROR)
|
else if ((strcmp(state, "shutdown") == 0 || strcmp(state, "error") == 0) && printer.state != PRINTER_STATE_ERROR)
|
||||||
{
|
{
|
||||||
printer_state = PRINTER_STATE_ERROR;
|
printer_state = PRINTER_STATE_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user