diff --git a/CYD-Klipper/src/core/data_setup.cpp b/CYD-Klipper/src/core/data_setup.cpp index 73c3efc..36e0825 100644 --- a/CYD-Klipper/src/core/data_setup.cpp +++ b/CYD-Klipper/src/core/data_setup.cpp @@ -139,7 +139,7 @@ void fetch_printer_data() { 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; }