From 360eee5a7d29c34023bc329f38473c2bd96fae87 Mon Sep 17 00:00:00 2001 From: Mikhail Grushinskiy Date: Wed, 6 Nov 2024 16:05:29 -0500 Subject: [PATCH] Update bbn_m5atomS3_lite_DS18B20.ino --- bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino b/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino index b4a8876..66ec093 100644 --- a/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino +++ b/bbn_m5atomS3_lite_DS18B20/bbn_m5atomS3_lite_DS18B20.ino @@ -28,14 +28,14 @@ void setup() { } } -void byte_to_hex_ascii(unsigned char byte, char* hex_str) { +void byte_to_hex_ascii(unsigned char byte, char hex_str[3]) { sprintf(hex_str, "%02X", byte); } 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); + byte_to_hex_ascii(deviceAddress[i], a); str[2 * i] = a[0]; str[2 * i + 1] = a[1]; }