fix veStruct

* PPV is int not double
* fix: initialize veStruct to 0 to avoid random data on startup
This commit is contained in:
helgeerbe 2023-03-09 10:16:55 +01:00
parent 6f3e33c0b1
commit 418fea2cfc

View File

@ -257,7 +257,7 @@ uint16_t PowerLimiterClass::getDirectSolarPower()
return 0;
}
return round(VeDirect.veFrame.PPV);
return VeDirect.veFrame.PPV;
}
float PowerLimiterClass::getLoadCorrectedVoltage(std::shared_ptr<InverterAbstract> inverter)