better logging
This commit is contained in:
parent
0e9c3dcd74
commit
47446f5977
1 changed files with 7 additions and 1 deletions
|
@ -607,8 +607,14 @@ void setup() {
|
|||
|
||||
if (settings.DoorDisabled() != previousDoorDisabled || isFirstRun) {
|
||||
if (settings.DoorDisabled()) {
|
||||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Disabling Door due to DoorDisabled setting");
|
||||
#endif
|
||||
unlockDoor(false); // Provide the required argument
|
||||
} else {
|
||||
#ifdef SERIAL_DEBUG
|
||||
Serial.println("Enabling Door due to DoorDisabled setting");
|
||||
#endif
|
||||
lockDoor();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue