完善我先
This commit is contained in:
parent
522c30f400
commit
8b4dfd3185
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue