Add comma values to inverter limit
This commit is contained in:
parent
9d1678c406
commit
4c65be8c55
@ -19,7 +19,7 @@ void SystemConfigParaParser::appendFragment(uint8_t offset, uint8_t* payload, ui
|
|||||||
|
|
||||||
float SystemConfigParaParser::getLimitPercent()
|
float SystemConfigParaParser::getLimitPercent()
|
||||||
{
|
{
|
||||||
return ((((uint16_t)_payload[2]) << 8) | _payload[3]) / 10;
|
return ((((uint16_t)_payload[2]) << 8) | _payload[3]) / 10.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SystemConfigParaParser::setLimitPercent(float value)
|
void SystemConfigParaParser::setLimitPercent(float value)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user