From cc0d80c7d86c6d0167269b3408c4b30c24ce84e9 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 23 三月 2020 16:55:37 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs index 6e90cb5..1ec0c90 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs @@ -37,7 +37,13 @@ //娓呯┖bodyFrame this.ClearBodyFrame(); - var listDevice = Common.LocalDevice.Current.GetDevicesByMac(i_deviceMac); + var listDevice = Common.LocalDevice.Current.GetDevicesByMac(i_deviceMac); + var oTADevice = Common.LocalDevice.Current.GetOTADevice(i_deviceMac); + if (listDevice.Count == 0) + { + //閽堝鍗曠函鍙湁涓�涓�200绔偣鐨勮澶� + listDevice.Add(oTADevice); + } var listView = new VerticalListControl(12); listView.BackgroundColor = UserCenterColor.Current.White; @@ -76,9 +82,8 @@ rowImage.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uImageId), 400); rowImage.AddMostRightView(otaDevice.ImgTypeId.ToString(), 400); rowImage.AddBottomLine(); - } + } - var oTADevice = Common.LocalDevice.Current.GetOTADevice(listDevice[0].DeviceAddr); if (oTADevice != null) { //鍥轰欢鐗堟湰 -- Gitblit v1.8.0