mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-21 05:33:24 +00:00
map error text in moonraker as error state
This commit is contained in:
@@ -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