Browse Source

Bugfix: setLimit after iv reboot

pull/1638/head
Patrick Amrhein 9 months ago
parent
commit
9dc7129ad7
  1. 11
      src/plugins/zeroExport/zeroExport.h

11
src/plugins/zeroExport/zeroExport.h

@ -485,6 +485,17 @@ class ZeroExport {
mLog["i"] = inv;
mCfg->groups[group].inverters[inv].waitAck = 0;
mLog["wA"] = mCfg->groups[group].inverters[inv].waitAck;
mCfg->groups[group].inverters[inv].limit = mCfg->groups[group].inverters[inv].powerMin;
iv->powerLimit[0] = static_cast<uint16_t>(mCfg->groups[group].inverters[inv].limit * 10.0);
iv->powerLimit[1] = AbsolutNonPersistent;
if (iv->setDevControlRequest(ActivePowerContr)) {
mApp->triggerTickSend(iv->id);
mCfg->groups[group].inverters[inv].waitAck = 60;
mCfg->groups[group].inverters[inv].action = zeroExportAction_t::doNone;
mCfg->groups[group].inverters[inv].actionTimer = 0;
mCfg->groups[group].inverters[inv].actionTimestamp = millis();
}
sendLog();
clearLog();
}

Loading…
Cancel
Save