From 665e1b5cb16d058f478867d0e8a4f8632e2cb02e Mon Sep 17 00:00:00 2001 From: GuoWenxue <“guowenxue@gmail.com”> Date: Fri, 29 Apr 2022 10:29:19 +0800 Subject: [PATCH] upate packet time to struct tm --- lightd/hal/hal.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lightd/hal/hal.c b/lightd/hal/hal.c index 25ac288..e7cb1d8 100644 --- a/lightd/hal/hal.c +++ b/lightd/hal/hal.c @@ -63,6 +63,13 @@ { s_infrared_lines = gpiod_chip_get_line(s_chip, ctx->infrared_pin); gpiod_line_request_rising_edge_events(s_infrared_lines, "infrared"); + log_err("infrared GPIO input lines request for rising edge event ok\n"); + } + + if( tsl2561_init()< 0 ) + { + log_err("LUX sensor TSL2561 initialise failure\n"); + return -2; } -- Gitblit v1.9.1