DevInfoParser: Dont create string object twice
This commit is contained in:
parent
05d9ce4590
commit
753ab1312e
@ -111,7 +111,7 @@ String DevInfoParser::getHwVersion()
|
|||||||
{
|
{
|
||||||
char buf[8];
|
char buf[8];
|
||||||
snprintf(buf, sizeof(buf), "%02d.%02d", _payloadDevInfoSimple[6], _payloadDevInfoSimple[7]);
|
snprintf(buf, sizeof(buf), "%02d.%02d", _payloadDevInfoSimple[6], _payloadDevInfoSimple[7]);
|
||||||
return String(buf);
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t DevInfoParser::getMaxPower()
|
uint16_t DevInfoParser::getMaxPower()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user