From 1f26d743028ceb7e37555e1e89cd078e90a5c242 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 04 七月 2022 10:46:07 +0800
Subject: [PATCH] 毫米波传感器对接

---
 HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs |   35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
index 6a45090..f7af085 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -94,23 +94,24 @@
             //鍒锋柊鐣岄潰鐘舵��
             this.RefreshFormStatu();
             //璇诲彇鐘舵��
-            new System.Threading.Thread(() =>
-            {
-                while (true)
-                {
-                    if(controlTime == DateTime.MinValue)
-                    {
-
-                    }
-                    else if (controlTime.AddSeconds(2)<DateTime.Now)
-                    {
                         Control.Ins.SendReadCommand(device);
-                        controlTime = DateTime.MinValue;
-                    }
-                    System.Threading.Thread.Sleep(1000);
-                }
-            })
-            { IsBackground = true }.Start();
+            //new System.Threading.Thread(() =>
+            //{
+            //    while (true)
+            //    {
+            //        if(controlTime == DateTime.MinValue)
+            //        {
+
+            //        }
+            //        else if (controlTime.AddSeconds(2)<DateTime.Now)
+            //        {
+            //            Control.Ins.SendReadCommand(device);
+            //            controlTime = DateTime.MinValue;
+            //        }
+            //        System.Threading.Thread.Sleep(1000);
+            //    }
+            //})
+            //{ IsBackground = true }.Start();
         }
 
         /// <summary>
@@ -949,7 +950,7 @@
                     device.SetAttrState(FunctionAttributeKey.SetTemp, arcBar.Progress.ToString());
                     btnTemp.Text = arcBar.Progress.ToString();
                     controlTime = DateTime.Now;
-                    Dictionary<string, string> d = new Dictionary<string, string>();
+                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                     d.Add(FunctionAttributeKey.SetTemp, arcBar.Progress.ToString());
                     Control.Ins.SendWriteCommand(device, d);
                 };

--
Gitblit v1.8.0