From a338a46654307634148874143b8c0c223f7ccbf8 Mon Sep 17 00:00:00 2001
From: fish <gcslyp@gmail.com>
Date: Sat, 23 Mar 2019 15:53:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=BE=E5=A4=87=E9=85=8D?=
 =?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 conf/gateway.conf | 8 ++++----
 worker.go         | 8 +++++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/conf/gateway.conf b/conf/gateway.conf
index dac7c89..196af62 100644
--- a/conf/gateway.conf
+++ b/conf/gateway.conf
@@ -93,10 +93,10 @@
 	"wireless_slave_devices":[
 		{
 			"adrh":0,
-			"adrl":0,
+			"adrl":4,
 			"type":0,
 			"version":"yunhorn_ys_l_v1",
-			"flip":true,
+			"flip":false,
 			"id":"BDA9D650-5E4C-41A0-A78F-DA8A8D488E45"
 		},
 		{
@@ -109,10 +109,10 @@
 		},
 		{
 			"adrh":0,
-			"adrl":2,
+			"adrl":0,
 			"type":0,
 			"version":"yunhorn_ys_l_v1",
-			"flip":true,
+			"flip":false,
 			"id":"018B5704-55BE-40CA-9D3E-90EF157C2489"
 		}
 	],
diff --git a/worker.go b/worker.go
index c56ceca..9505a58 100644
--- a/worker.go
+++ b/worker.go
@@ -46,6 +46,8 @@ func yunhorn_wireless(data_buf []byte){
             continue;
           }
 
+
+
           if item.FLIP{
             if data==0{
               data = 1
@@ -67,9 +69,9 @@ func yunhorn_wireless(data_buf []byte){
       }
     }
   }
-  if(len(data_buf)>8){
-    go yunhorn_wireless(data_buf[4:])
-  }
+  // if(len(data_buf)>8){
+    // go yunhorn_wireless(data_buf[4:])
+  // }
 }
 
 func yunhorn_xdy_l_v1(data_buf []byte){