Skip to content

Commit

Permalink
Fix #1141 by allowing informational commands in Critical state
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Dec 22, 2024
1 parent 4eec327 commit 7f84b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FluidNC/src/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ bool notIdleOrJog() {
return !state_is(State::Idle) && !state_is(State::Jog);
}
bool notIdleOrAlarm() {
return !state_is(State::Idle) && !state_is(State::Alarm) && !state_is(State::ConfigAlarm) && !state_is(State::SafetyDoor);
return !state_is(State::Idle) && !state_is(State::Alarm) && !state_is(State::ConfigAlarm) && !state_is(State::Critical) &&
!state_is(State::SafetyDoor);
}
bool cycleOrHold() {
return state_is(State::Cycle) || state_is(State::Hold);
Expand Down

0 comments on commit 7f84b68

Please sign in to comment.