Skip to content

Commit

Permalink
map error text in moonraker as error state
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Mar 13, 2024
1 parent a7bde99 commit 1a31ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CYD-Klipper/src/core/data_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a31ef0

Please sign in to comment.