From 55f465be474c54edbceb3c6013ae629e0e0323d8 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 31 Jul 2019 16:26:46 +0800
Subject: [PATCH] Add tsl2561 code, and test force fill-in light ok

---
 mqttd/etc/conf.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/mqttd/etc/conf.c b/mqttd/etc/conf.c
index 4afe90b..d9df566 100644
--- a/mqttd/etc/conf.c
+++ b/mqttd/etc/conf.c
@@ -179,6 +179,9 @@
             log_warn("WARNNING: LUX sensor hardware not enable and change fill-in light mode to ON\n");
             ctx->hwconf.fillin_light = FILLIN_LIGHT_ON;
         }
+
+        ctx->hwconf.light_intval = iniparser_getint(ini, "hardware:light_intval", 20);
+        log_nrml("Parser inbreak fill-in light interval time [%d]\n", ctx->hwconf.light_intval);
     }
 
 

--
Gitblit v1.9.1