mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-08 13:41:40 +02:00
0.8.970005-zero
This commit is contained in:
parent
0dae65bbd4
commit
5052a0ccc6
4 changed files with 22 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue