diff --git a/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino b/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino index 6d4b3dd..a0ffec9 100644 --- a/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino +++ b/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino @@ -32,7 +32,7 @@ void byte_to_hex_ascii(unsigned char byte, char* hex_str) { sprintf(hex_str, "%02X", byte); } -void addressToStr(DeviceAddress deviceAddress, char str[9]) { +void addressToStr(DeviceAddress deviceAddress, char str[17]) { for (uint8_t i = 0; i < 8; i++) { char a[3]; byte_to_hex_ascii(deviceAddress[i], &a);