Revert broken change in condition that sets _consumeSolarPowerOnly

6709338dbd
This commit is contained in:
Bernhard Kaszt 2023-03-05 16:30:53 +01:00
parent a6e720f154
commit 304d90062d

View File

@ -110,7 +110,7 @@ void PowerLimiterClass::loop()
if ((_consumeSolarPowerOnly && isStartThresholdReached(inverter))) {
// The battery is full enough again, use the full battery power from now on.
_consumeSolarPowerOnly = false;
} else if (!_consumeSolarPowerOnly && !isStopThresholdReached(inverter) && canUseDirectSolarPower()) {
} else if (!_consumeSolarPowerOnly && isStopThresholdReached(inverter) && canUseDirectSolarPower()) {
// The battery voltage dropped too low
_consumeSolarPowerOnly = true;
}