From 96c686f89f126ad4cf1e262b83301fb7cc8bf2d5 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 07 十一月 2019 10:57:31 +0800
Subject: [PATCH] 2019.11.7

---
 ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs b/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
index 2ec303f..1cad5f8 100644
--- a/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/AC/ACControl.cs
@@ -143,12 +143,12 @@
                             //Thermostat鍔熻兘
                             if ((common as ZigBee.Device.AC).DeviceStatusReport.CluterID == 513)
                             {
-                                var attriButeList = (common as ZigBee.Device.AC).DeviceStatusReport.AttriBute;
+                                var attriButeList = common.DeviceStatusReport.AttriBute;
                                 if (attriButeList == null || attriButeList.Count == 0)
                                 {
                                     return;
                                 }
-                                ac.DeviceStatusReport = (common as ZigBee.Device.AC).DeviceStatusReport;
+                                ac.DeviceStatusReport = common.DeviceStatusReport;
                                 switch (attriButeList[0].AttributeId)
                                 {
                                     case 0:
@@ -306,13 +306,13 @@
         /// <summary>
         /// 鍒濆鍖�
         /// </summary>
-        /// <param name="device">Device.</param>
-        /// <param name="room">Room.</param>
-        private void InitAC(DeviceUI device, Common.Room room)
+        /// <param name="dev">Device.</param>
+        /// <param name="curRoom">Room.</param>
+        private void InitAC(DeviceUI dev, Common.Room curRoom)
         {
             ZbGateway.StatusList.Add(this);
-            this.device = device;
-            this.room = room;
+            this.device = dev;
+            this.room = curRoom;
             this.ac = device.CommonDevice as ZigBee.Device.AC;
 
             //娣诲姞topview

--
Gitblit v1.8.0