From 2e84abfd073ec3047c7b3295c47f109007f3bd80 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 02 Feb 2026 16:34:56 +0800
Subject: [PATCH] Update lightd code to get lux value without timeout

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

diff --git a/project/modules/sht20.c b/project/modules/sht20.c
index a96d0c6..4b6a585 100644
--- a/project/modules/sht20.c
+++ b/project/modules/sht20.c
@@ -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.10.0