From 732d1963ed83abf4e5f1b06ec451a6943421d716 Mon Sep 17 00:00:00 2001 From: Guo Wenxue <guowenxue@gmail.com> Date: Thu, 22 Sep 2022 00:36:11 +0800 Subject: [PATCH] update ds18b20.c to snprintf --- 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