handle lock mode after reboot

This commit is contained in:
Matthew Frost 2023-12-28 10:33:16 +01:00
parent 05b9eaf52c
commit 6a9976868b

View file

@ -611,7 +611,7 @@ void setup() {
bool isFirstRun = true; // Declare the missing variable
void updateDoorStatus() {
if (settings.getDoorDisabled() != previousgetDoorDisabled && !isFirstRun) {
if (settings.getDoorDisabled() != previousgetDoorDisabled || isFirstRun) {
#ifdef SERIAL_DEBUG
Serial.print("getDoorDisabled setting changed to: ");
@ -730,7 +730,6 @@ void loop() {
} else {
tinance2authrequest(String(fullCardID), String(cardID));
}
#endif
#ifdef LOCAL_ACL