This commit is contained in:
Matthew Frost 2023-06-13 15:51:24 +02:00
parent 2ca0b3ea9b
commit 706bb4bbd2

View file

@ -50,8 +50,10 @@ void toggleDoor() {
// Toggle the relay based on the current state
if (relayState == LOW) {
lockDoor();
digitalWrite(LEDCTL_PIN,LOW);
} else {
unlockDoor(false);
digitalWrite(LEDCTL_PIN,HIGH);
}
#endif
}