From 9b9e6fa0ba75658e1b9c26548003fdd28d6014f6 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 10 Apr 2022 16:07:38 +0800
Subject: [PATCH] Merge branch 'master' of ssh://master.iot-yun.club:2280/raspberrypi

---
 iotd/conf/conf.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iotd/conf/conf.c b/iotd/conf/conf.c
index 7797af6..aa0e2d1 100644
--- a/iotd/conf/conf.c
+++ b/iotd/conf/conf.c
@@ -72,6 +72,11 @@
                 if( 3 == rv) 
                 {
                     log_nrml("parser GPIO input[%s] BCM[%d] active[%d]\n", gpio->input[cnt].name, gpio->input[cnt].pin, gpio->input[cnt].active_level);
+                    if( strstr(gpio->input[cnt].name, "infrared") )
+                    {
+                        log_nrml("parser GPIO enable infrared detect\n");
+                        gpio->infrared_enable = 1;
+                    }
                     cnt++;
                     gpio->incnt = cnt;
                 }

--
Gitblit v1.9.1