We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264b790 commit 43e6242Copy full SHA for 43e6242
NodeManagerLibrary.ino
@@ -1760,7 +1760,7 @@ void SensorDs18b20::setSleepDuringConversion(bool value) {
1760
1761
// return the address of a device
1762
char* SensorDs18b20::_getAddress(int index) {
1763
- char* charAddr = " ";
+ char* charAddr = new char[17];
1764
DeviceAddress device_address;
1765
_sensors->getAddress(device_address,index);
1766
String strAddr = String(device_address[0], HEX);
@@ -1772,6 +1772,7 @@ char* SensorDs18b20::_getAddress(int index) {
1772
strAddr.toUpperCase();
1773
}
1774
for (int j = 0; j < 16; j++) charAddr[j] = strAddr[j];
1775
+ charAddr[16] = 0;
1776
return charAddr;
1777
1778
#endif
0 commit comments