mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-08 21:51:38 +02:00
Bugfix: setLimit Pmin (erweitert 2%)
This commit is contained in:
parent
c16865ebcf
commit
2a37f0ec1e
1 changed files with 5 additions and 0 deletions
|
@ -1204,6 +1204,11 @@ class ZeroExport {
|
|||
if (mCfg->groups[group].inverters[inv].limitNew < mCfg->groups[group].inverters[inv].powerMin) {
|
||||
mCfg->groups[group].inverters[inv].limitNew = mCfg->groups[group].inverters[inv].powerMin;
|
||||
}
|
||||
// Restriction LimitNew >= 2%
|
||||
uint16_t power2proz = mIv[group][inv]->getMaxPower() / 100 * 2;
|
||||
if (mCfg->groups[group].inverters[inv].limitNew < power2proz) {
|
||||
mCfg->groups[group].inverters[inv].limitNew = power2proz;
|
||||
}
|
||||
|
||||
// Restriction LimitNew <= Pmax
|
||||
if (mCfg->groups[group].inverters[inv].limitNew > mCfg->groups[group].inverters[inv].powerMax) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue