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;