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);