From c85f69c5452a9e229f38e0f6ece9efd712c2458d Mon Sep 17 00:00:00 2001 From: Ollo Date: Thu, 28 Mar 2024 20:39:43 +0100 Subject: [PATCH] Fixed low light information, by comparing it with minimum value --- esp32/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 93718e0..211b8ae 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -1104,7 +1104,7 @@ void plantcontrol() Serial.flush(); } -bool isLowLight = (mSolarVoltage <= SOLAR_CHARGE_MAX_VOLTAGE); +bool isLowLight = (mSolarVoltage <= SOLAR_CHARGE_MIN_VOLTAGE); #if defined(TIMED_LIGHT_PIN) bool shouldLight = determineTimedLightState(isLowLight);