From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 07 十一月 2019 13:48:36 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC --- ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs b/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs old mode 100755 new mode 100644 index ecb3c7e..2e777a0 --- a/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs +++ b/ZigbeeApp/Shared/Phone/Device/AirSwitch/AirSwitchControl.cs @@ -126,10 +126,10 @@ } if (deviceUI.CommonDevice.Type == DeviceType.AirSwitch) { - if (common.DeviceStatusReport.CluterID == 6) + if ((common as ZigBee.Device.AirSwitch).DeviceStatusReport.CluterID == 6) { var airSwitch = deviceUI.CommonDevice as ZigBee.Device.AirSwitch; - airSwitch.DeviceStatusReport = common.DeviceStatusReport; + airSwitch.DeviceStatusReport = (common as ZigBee.Device.AirSwitch).DeviceStatusReport; //璁板綍銆佹洿鏂扮姸鎬� if (airSwitch.DeviceStatusReport.AttriBute == null || airSwitch.DeviceStatusReport.AttriBute.Count == 0) { @@ -140,7 +140,7 @@ airSwitch.LastDateTime = DateTime.Now; } //***鏂版敼***璁惧鐘舵�佷笂鎶ヤ腑锛屽綋CluterID=3,璇佹槑璁惧鍦ㄧ嚎锛岀洿鎺ユ爣璁� - else if (common.DeviceStatusReport.CluterID == 3) + else if ((common as ZigBee.Device.AirSwitch).DeviceStatusReport.CluterID == 3) { var airSwitch = deviceUI.CommonDevice as ZigBee.Device.AirSwitch; airSwitch.IsOnline = 1; -- Gitblit v1.8.0