disable restarting solar-powered inverters

now that users can tell the DPL that their inverter is not powered by a
battery but powered by solar panels, we shall not restart inverters to
reset the daily yield value, if they are solar powered. these inverters
will reboot every night by themselves.
This commit is contained in:
Bernhard Kirchen 2024-03-14 14:44:04 +01:00
parent 8895791145
commit 5c6b4a8f12

View File

@ -804,6 +804,12 @@ void PowerLimiterClass::calcNextInverterRestart()
return;
}
if (config.PowerLimiter.IsInverterSolarPowered) {
_nextInverterRestart = 1;
MessageOutput.println("[DPL::calcNextInverterRestart] not restarting solar-powered inverters");
return;
}
// read time from timeserver, if time is not synced then return
struct tm timeinfo;
if (getLocalTime(&timeinfo, 5)) {