Browse Source

Bugfix: newDataAvailable ivL

pull/1537/head
Patrick Amrhein 10 months ago
parent
commit
0ca2eb8287
  1. 5
      src/plugins/zeroExport/zeroExport.h

5
src/plugins/zeroExport/zeroExport.h

@ -273,9 +273,10 @@ class ZeroExport {
mLog["a"] = iv->isAvailable(); mLog["a"] = iv->isAvailable();
mLog["ivL%"] = iv->actPowerLimit; mLog["ivL%"] = iv->actPowerLimit;
mLog["ivPm"] = iv->getMaxPower(); mLog["ivPm"] = iv->getMaxPower();
mLog["ivL"] = (uint16_t)(iv->getMaxPower() / 100 * iv->actPowerLimit); uint16_t ivL = (iv->getMaxPower() * iv->actPowerLimit) / 100;
mLog["ivL"] = ivL;
mLog["zeL"] = (uint16_t)mCfg->groups[group].inverters[inv].limit; mLog["zeL"] = (uint16_t)mCfg->groups[group].inverters[inv].limit;
mCfg->groups[group].inverters[inv].limit = (iv->getMaxPower() / 100 * iv->actPowerLimit); mCfg->groups[group].inverters[inv].limit = ivL;
unsigned long eTsp = millis(); unsigned long eTsp = millis();
mLog["B"] = bTsp; mLog["B"] = bTsp;
mLog["E"] = eTsp; mLog["E"] = eTsp;

Loading…
Cancel
Save