Skip to content

Commit

Permalink
Remove V_ARMED state
Browse files Browse the repository at this point in the history
  • Loading branch information
lkankowski committed Apr 29, 2021
1 parent 6a30591 commit 2dad212
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ void setup() {
myMessage.setType(V_STATUS);
for (int relayNum = 0; relayNum < gNumberOfRelays; relayNum++) {
myMessage.setSensor(gRelay[relayNum].getSensorId());
// if (gRelay[relayNum].isSensor()) {
// myMessage.setType(V_ARMED);
// send(myMessage.set(true));
// }
myMessage.setType(gRelay[relayNum].isSensor() ? V_TRIPPED : V_STATUS);
send(myMessage.set(gRelay[relayNum].getState())); // send current state
}
Expand Down

0 comments on commit 2dad212

Please sign in to comment.