From dcf60777c9346ff058f06298d03173f0c53d1902 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 16 十二月 2020 20:42:15 +0800
Subject: [PATCH] 20201216-4

---
 HDL_ON/DAL/DriverLayer/Control.cs |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 33a81c0..82757c7 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -77,7 +77,12 @@
                     if (value)
                     {
                         MainPage.Log($"缃戝叧鍦ㄧ嚎锛屽埛鏂拌澶囩姸鎬�");
-                        FunctionList.List.ReadAllFunctionStatus();
+                        new System.Threading.Thread(() =>
+                        {
+                            System.Threading.Thread.Sleep(1000);
+                            FunctionList.List.ReadAllFunctionStatus();
+                        })
+                        { IsBackground = true, Priority = System.Threading.ThreadPriority.AboveNormal }.Start();
                     }
                 }
             }
@@ -363,7 +368,7 @@
             else
             {
                 Dictionary<string, string> keys = new Dictionary<string, string>();
-                keys.Add("sid", scene.userSceneId);
+                keys.Add("sid", scene.sid);
                 var aLinkData = new AlinkReadFunctionStatusObj()
                 {
                     id = Ins.msg_id.ToString(),
@@ -477,6 +482,11 @@
         public void UpdataFunctionStatus(string revString)
         {
             MainPage.Log($"A鍗忚鏇存柊鐘舵��:{revString}");
+            if(Control.Ins.myUdp!= null)
+            {
+                //閲嶇疆閲嶅惎udp鍒ゆ柇璋冩暣
+                Ins.myUdp.controlLostCount = 0;
+            }
             var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<AlinkFunctionStatusObj>(revString);
             if (temp != null)
             {

--
Gitblit v1.8.0