Merge f01dd7c4bf into 653efb41a2
This commit is contained in:
commit
9556f4e49a
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user