Skip to content

Commit

Permalink
Merge branch 'pr2513'
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Jan 24, 2025
2 parents 226ed94 + f01dd7c commit 04aaa0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Hoymiles/src/parser/SystemConfigParaParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 04aaa0f

Please sign in to comment.