Merge branch 'pr2513'

This commit is contained in:
Thomas Basler 2025-01-24 21:08:49 +01:00
commit 04aaa0fb5a

View File

@ -47,7 +47,11 @@ float SystemConfigParaParser::getLimitPercent() const
HOY_SEMAPHORE_TAKE();
const float ret = ((static_cast<uint16_t>(_payload[2]) << 8) | _payload[3]) / 10.0;
HOY_SEMAPHORE_GIVE();
return ret;
// don't pretend the inverter could produce more than its rated power,
// even though it does process, accept, and even save limit values beyond
// its rated power.
return min<float>(100, ret);
}
void SystemConfigParaParser::setLimitPercent(const float value)