Fixed low light information, by comparing it with minimum value

This commit is contained in:
Ollo 2024-03-28 20:39:43 +01:00
parent 7494f9de51
commit c85f69c545

View File

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