完善我先

This commit is contained in:
fish 2019-03-23 10:38:28 +08:00
parent 522c30f400
commit 8b4dfd3185
2 changed files with 7 additions and 1 deletions

View File

@ -97,7 +97,7 @@
"type":0,
"version":"yunhorn_ys_l_v1",
"flip":true,
"id":"15FC0975-BE31-42C4-9194-B5F552CC7255"
"id":"BDA9D650-5E4C-41A0-A78F-DA8A8D488E45"
},
{
"adrh":0,

View File

@ -39,6 +39,12 @@ func yunhorn_wireless(data_buf []byte){
if dataType !=3 {
for _,item := range conf.WIRELESSSLAVEDEVICES{
//数据是否需要反转,检测到有信号是1的情况
// log.Println("adrh:%d,adrl:%d,conf.adrh:%d,conf.adrl:%d",int(adrh),int(adrl),item.ADRH,item.ADRL)
if int(adrh)!=item.ADRH || int(adrl) != item.ADRL{
continue;
}
if item.FLIP{
if data==0{
data = 1