From a574ce7edf7f31847be882f9f08dcd1ab8e5ebe0 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 18 Nov 2025 16:00:47 +0800
Subject: [PATCH] update lightd and thingsboard

---
 project/modules/sht20.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/project/modules/sht20.c b/project/modules/sht20.c
index 8250d03..4b6a585 100644
--- a/project/modules/sht20.c
+++ b/project/modules/sht20.c
@@ -40,7 +40,7 @@
 #include <linux/i2c-dev.h>
 
 #include "logger.h"
-#include "util_proc.h"
+#include "utils.h"
 #include "sht20.h"
 
 int i2c_write(int fd, uint8_t slave_addr, uint8_t *data, int len);
@@ -90,7 +90,7 @@
 
     memset(buf, 0, sizeof(buf));
     i2c_read(fd, SHT20_I2CADDR, buf, 3);
-    log_dump(LOG_LEVEL_TRACE, "Temperature sample data: ", buf, 3);
+    log_dump(LOG_LEVEL_TRACE, "Temperature sample data: ", (char *)buf, 3);
 
     if( !sht20_checksum(buf, 2, buf[2]) )
     {
@@ -113,7 +113,7 @@
 
     memset(buf, 0, sizeof(buf));
     i2c_read(fd, SHT20_I2CADDR, buf, 3);
-    log_dump(LOG_LEVEL_TRACE, "Relative humidity sample data: ", buf, 3);
+    log_dump(LOG_LEVEL_TRACE, "Relative humidity sample data: ", (char *)buf, 3);
 
     if( !sht20_checksum(buf, 2, buf[2]) )
     {

--
Gitblit v1.9.1