0.8.970005-zero

This commit is contained in:
Patrick Amrhein 2024-03-27 09:26:46 +01:00
parent 0dae65bbd4
commit 5052a0ccc6
4 changed files with 22 additions and 6 deletions

View file

@ -257,6 +257,10 @@ class ZeroExport {
// return;
// }
if (iv->actPowerLimit == 65535) {
return;
}
for (uint8_t group = 0; group < ZEROEXPORT_MAX_GROUPS; group++) {
for (uint8_t inv = 0; inv < ZEROEXPORT_GROUP_MAX_INVERTERS; inv++) {
if (iv->id == mCfg->groups[group].inverters[inv].id) {
@ -271,7 +275,7 @@ class ZeroExport {
mLog["ivPm"] = iv->getMaxPower();
mLog["ivL"] = (uint16_t)(iv->getMaxPower() / 100 * iv->actPowerLimit);
mLog["zeL"] = (uint16_t)mCfg->groups[group].inverters[inv].limit;
mCfg->groups[group].inverters[inv].limit = (iv->getMaxPower() / 100 * iv->actPowerLimit);
unsigned long eTsp = millis();
mLog["B"] = bTsp;
mLog["E"] = eTsp;