Merge branch 'lumapu:zero-export' into zero-export

This commit is contained in:
tictrick 2024-03-27 09:35:05 +01:00 committed by GitHub
commit 11aa53e9d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;