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/lightd/hal/gpio.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/project/lightd/hal/gpio.c b/project/lightd/hal/gpio.c
index 45e1429..db49bd2 100644
--- a/project/lightd/hal/gpio.c
+++ b/project/lightd/hal/gpio.c
@@ -17,14 +17,7 @@
#include <errno.h>
#include "logger.h"
-#include "util_proc.h"
-#include "gpio.h"
-
-#define RPI_GPIONAME "gpiochip0"
-#include <errno.h>
-
-#include "logger.h"
-#include "util_proc.h"
+#include "utils.h"
#include "gpio.h"
#define RPI_GPIONAME "gpiochip0"
@@ -202,7 +195,7 @@
return 0;
}
- log_debug("infrared start detect event(blocked) now...\n");
+ log_info("infrared start detect event(blocked) now...\n");
rv = gpiod_line_event_wait_bulk(&bulk, NULL, &event_bulk);
if( rv <= 0 )
{
--
Gitblit v1.10.0