From a903b916f09419e7324a2352232e601acc598d67 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 28 Jan 2021 17:13:32 +0800
Subject: [PATCH] update lightd main.c, add lux sensor support and test ok

---
 lightd/hal/tsl2561.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lightd/hal/tsl2561.c b/lightd/hal/tsl2561.c
index 3aaf087..341eefa 100644
--- a/lightd/hal/tsl2561.c
+++ b/lightd/hal/tsl2561.c
@@ -12,8 +12,6 @@
  *                 
  ********************************************************************************/
 
-#include <wiringPi.h>
-#include <wiringPiI2C.h> 
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -187,6 +185,7 @@
 
 OUT:
     tsl2561_power(OFF);
+    return lux;
 }
 
 

--
Gitblit v1.9.1