From 58cb523e1b5462206e0fba71675f9523fa8a2b0f Mon Sep 17 00:00:00 2001 From: Ollo Date: Fri, 1 Oct 2021 22:53:40 +0200 Subject: [PATCH] added determineTimeLightState in TIMED_LIGHT_PIN define --- esp32/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 2f2a4f3..412c35a 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -974,7 +974,7 @@ void plantcontrol() /** @}*/ - +#ifdef TIMED_LIGHT_PIN bool determineTimedLightState(bool lowLight){ bool onlyAllowedWhenDark = timedLightOnlyWhenDark.get(); long hoursStart = timedLightStart.get(); @@ -1010,6 +1010,8 @@ bool determineTimedLightState(bool lowLight){ } } +#endif + void log(int level, String message, int statusCode) { String buffer;