Skip to content

Commit

Permalink
Fix relays_is_disabled not returning the right value for non-interloc…
Browse files Browse the repository at this point in the history
…k pins
  • Loading branch information
Lyrkan committed Jan 13, 2024
1 parent 2dc8100 commit 5f1076e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/K40/relays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bool relays_is_active(RelayPin pin) { return digitalRead(pin) == relays_get_pin_
bool relays_is_disabled(RelayPin pin) {
// Only the interlock pin can currently be in disabled state
if (pin != RELAY_PIN_INTERLOCK) {
return true;
return false;
}

uint8_t alerts_status = alerts_get_current_alerts();
Expand Down

0 comments on commit 5f1076e

Please sign in to comment.