From 8e196676ea5bfea62f34802de507ad0b168b7e88 Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Wed, 27 Dec 2023 22:01:45 +0100 Subject: [PATCH] better logging --- src/main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3a5289d..98ae0a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -606,6 +606,16 @@ void setup() { if (settings.DoorDisabled() != previousDoorDisabled || isFirstRun) { + + #ifdef SERIAL_DEBUG + Serial.print("DoorDisabled setting changed to: "); + Serial.println(settings.DoorDisabled()); + Serial.print("Previous DoorDisabled setting: "); + Serial.println(previousDoorDisabled); + Serial.print("isFirstRun: "); + Serial.println(isFirstRun); + #endif + if (settings.DoorDisabled()) { #ifdef SERIAL_DEBUG Serial.println("Disabling Door due to DoorDisabled setting");