From ed66fa90f8ddec03b1f535613358cb5951f180a7 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 08 Apr 2022 23:01:35 +0800 Subject: [PATCH] update x86 build shell script --- mqttd/etc/conf.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/mqttd/etc/conf.c b/mqttd/etc/conf.c index 4afe90b..2907a2e 100644 --- a/mqttd/etc/conf.c +++ b/mqttd/etc/conf.c @@ -179,6 +179,12 @@ 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); + + ctx->hwconf.lux_threshold = iniparser_getdouble(ini, "hardware:lux_threshold", 0.1); + log_nrml("Parser fill-in light threshold lux [%.03f]\n", ctx->hwconf.lux_threshold); } -- Gitblit v1.9.1