Fix: Reset Yield day correction in combination with Zero Yield Day on Midnight lead to wrong values.
This commit is contained in:
parent
677d822a3e
commit
e9b113486b
@ -133,10 +133,12 @@ void HoymilesClass::loop()
|
||||
if (currentWeekDay != lastWeekDay) {
|
||||
|
||||
for (auto& inv : _inverters) {
|
||||
// Have to reset the offets first, otherwise it will
|
||||
// Substract the offset from zero which leads to a high value
|
||||
inv->Statistics()->resetYieldDayCorrection();
|
||||
if (inv->getZeroYieldDayOnMidnight()) {
|
||||
inv->Statistics()->zeroDailyData();
|
||||
}
|
||||
inv->Statistics()->resetYieldDayCorrection();
|
||||
}
|
||||
|
||||
lastWeekDay = currentWeekDay;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user