From 706bb4bbd20258aa10119ffa797e90c8b30c2c11 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Tue, 13 Jun 2023 15:51:24 +0200 Subject: [PATCH] LEDCTL --- src/hardware.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 }