mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-18 16:20:41 +01:00
DevInfoParser: Dont create string object twice
This commit is contained in:
@@ -111,7 +111,7 @@ String DevInfoParser::getHwVersion()
|
||||
{
|
||||
char buf[8];
|
||||
snprintf(buf, sizeof(buf), "%02d.%02d", _payloadDevInfoSimple[6], _payloadDevInfoSimple[7]);
|
||||
return String(buf);
|
||||
return buf;
|
||||
}
|
||||
|
||||
uint16_t DevInfoParser::getMaxPower()
|
||||
|
||||
Reference in New Issue
Block a user