diff --git a/src/hardware.cpp b/src/hardware.cpp index 1a7a8eb..3d93511 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -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 }