From 4b378188ce972df432b23d9cb73babb6cc0679c6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 17 一月 2020 14:56:15 +0800
Subject: [PATCH] 合并代码 ver.10086

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
index 6c27ad4..e7277e7 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs
@@ -21,9 +21,9 @@
         /// </summary>
         private bool isDeviceThreadStart = false;
         /// <summary>
-        /// 绛夊緟璁惧鐨勫洖棣堢殑瓒呮椂鏃堕棿(鍗曚綅锛氱)
+        /// 绛夊緟璁惧鐨勫洖棣堢殑瓒呮椂鏃堕棿(鍗曚綅锛氱櫨姣)
         /// </summary>
-        private int waitDeviceTimeOut = 3;
+        private int waitDeviceTimeOut = 20;
         /// <summary>
         /// 涓婚瓒呮椂鐨勭嚎绋嬫槸鍚﹀紑鍚�
         /// </summary>
@@ -226,19 +226,16 @@
                 }
 
                 //鍒锋柊瓒呮椂鏃堕棿
-                this.waitDeviceTimeOut = 3;
+                this.waitDeviceTimeOut = 20;
 
                 //鑾峰彇璁惧鐨勫浐瀹氬睘鎬�
                 HdlDeviceFixedAttributeLogic.Current.SetAllFixedAttributeToDevice(device);
 
-                if ((device is OTADevice) == false)
-                {
-                    //涓嶉渶瑕�200绔偣鐨勯偅涓澶�
-                    this.dicNewDevice[device.DeviceAddr].Add(device);
+                //涓嶉渶瑕�200绔偣鐨勯偅涓澶�  2020.01.13 鍙樻洿:ota涔熷姞杩涙潵
+                this.dicNewDevice[device.DeviceAddr].Add(device);
 
-                    //鏈夋柊璁惧锛屽紑鍚樉绀鸿澶囦俊鎭晫闈㈢殑绾跨▼(閲岄潰浼氱瓑寰呬笁绉掕繖鏍�)
-                    this.StartShowDeviceAddSuccessFormThread();
-                }
+                //鏈夋柊璁惧锛屽紑鍚樉绀鸿澶囦俊鎭晫闈㈢殑绾跨▼(閲岄潰浼氱瓑寰呬笁绉掕繖鏍�)
+                this.StartShowDeviceAddSuccessFormThread();
             }
         }
 
@@ -263,12 +260,12 @@
                 while (this.waitDeviceTimeOut >= 0)
                 {
                     //绛夊緟涓嬩竴涓洖璺�
-                    System.Threading.Thread.Sleep(1000);
+                    System.Threading.Thread.Sleep(100);
                     this.waitDeviceTimeOut--;
                 }
                 //鍋滄鎺ユ敹
                 this.realGateway.GwResDataAction -= this.AdjustGatewayResultData;
-                System.Threading.Thread.Sleep(500);
+                System.Threading.Thread.Sleep(200);
 
                 //鐩墠灏卞紕涓�涓�
                 Application.RunOnMainThread(() =>
@@ -278,6 +275,10 @@
                         //閲嶆柊鍙樻洿UI
                         foreach (var device in listDevice)
                         {
+                            if (device is OTADevice)
+                            {
+                                continue;
+                            }
                             device.IconPath = string.Empty;
                             device.ReSave();
                         }

--
Gitblit v1.8.0