From c16f0f8fd1e5374164852a441751abb96a84d300 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 01 七月 2020 12:06:57 +0800 Subject: [PATCH] 2020-7-1-1 --- ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs index af09f9e..df45fc1 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicIfon.cs @@ -41,6 +41,18 @@ } } + else if (common.Type == DeviceType.IASZone) { + var iASZonedevice = common as IASZone; + if (iASZonedevice.IasDeviceType == 541) + {//鐞冨舰绉诲姩浼犳劅鍣� + if (Common.Logic.CurrentLogic.Conditions[i]["Cluster_ID"] == objecttype["Cluster_ID"]) + { + Common.Logic.CurrentLogic.Conditions.RemoveAt(i); + Common.Logic.CurrentLogic.Conditions.Insert(i, objecttype); + return; + } + } + } else { Common.Logic.CurrentLogic.Conditions.RemoveAt(i); @@ -153,7 +165,7 @@ { if (Common.Logic.CurrentLogic.Actions[i]["LinkType"].ToString() == "8") { - if (Common.Logic.CurrentLogic.Actions[i]["DeviceAddr"].ToString() == common.DeviceAddr && Common.Logic.CurrentLogic.Actions[i]["Epoint"].ToString() == common.DeviceEpoint.ToString()) + if (Common.Logic.CurrentLogic.Actions[i]["DeviceAddr"].ToString() == common.DeviceAddr && Common.Logic.CurrentLogic.Actions[i]["Epoint"].ToString() =="200") { Common.Logic.CurrentLogic.Actions.RemoveAt(i); Common.Logic.CurrentLogic.Actions.Insert(i, actionsInfo); -- Gitblit v1.8.0