From 7be9084b27e3385f27f7ac5d0e946f4dcaa94d1e Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 20:06:42 +0800
Subject: [PATCH] update lightd program and test auto light ok
---
project/lightd/lightd.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/project/lightd/lightd.c b/project/lightd/lightd.c
index 3e70513..158a3dd 100644
--- a/project/lightd/lightd.c
+++ b/project/lightd/lightd.c
@@ -36,7 +36,6 @@
static void program_usage(char *progname)
{
-
printf("Usage: %s [OPTION]...\n", progname);
printf(" %s is LingYun studio MQTT daemon program running on RaspberryPi\n", progname);
@@ -145,7 +144,6 @@
* | Auto Light Control Thread |
* +--------------------------------+
*/
-
log_info("Auto light control thread start\n");
while( ! g_signal.stop )
{
@@ -180,8 +178,8 @@
sleep(hwinfo->light_intval);
- turn_light("indoor", ON);
- turn_light("hallway", ON);
+ turn_light("indoor", OFF);
+ turn_light("hallway", OFF);
}
msleep(100);
--
Gitblit v1.9.1