Skip to content

Commit 1be8bb1

Browse files
author
cascha42
committed
fixing false negative on arboretum bar status
1 parent d12713b commit 1be8bb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devices/bar-status/bar-status.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void callback(char* topic, byte* payload, unsigned int length) {
8484
if (inputPayload == "open") {
8585
digitalWrite(D4, LOW); // Turn the BUILTIN_LED on by making the voltage LOW
8686
currentState = true;
87-
} else {
87+
} else if (inputPayload == "closed") {
8888
digitalWrite(D4, HIGH); // Turn the BUILTIN_LED off by making the voltage HIGH
8989
currentState = false;
9090
}

0 commit comments

Comments
 (0)