From d020a48f69f1acd8d97fc15372e19cde7779d934 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 15 十一月 2021 10:46:43 +0800
Subject: [PATCH] 绑定source面板

---
 HDL_ON/DAL/DriverLayer/Control_Udp.cs |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control_Udp.cs b/HDL_ON/DAL/DriverLayer/Control_Udp.cs
index 5f929c0..6991ad8 100644
--- a/HDL_ON/DAL/DriverLayer/Control_Udp.cs
+++ b/HDL_ON/DAL/DriverLayer/Control_Udp.cs
@@ -1133,17 +1133,18 @@
         /// <summary>
         /// 鍙戦�乽dp A鍗忚鏁版嵁
         /// </summary>
-        public void SendLocalHdlLinkData(byte[] sendBytes,string id, bool isWait=false)
+        public void SendLocalHdlLinkData(byte[] sendBytes,string id, int resend = 3)
         {
             packet = new Packet(sendBytes, new System.Net.IPEndPoint(System.Net.IPAddress.Parse(Control.Ins.reportIp), 8585));
+            packet.HaveSendCount = 3 - resend;//閲嶅彂娆℃暟
             sendFlag = id;
             System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(managerSendCount));
             thread.IsBackground = true;
             thread.Start(packet);
-            if (isWait)
-            {
-                wait(); 
-            }
+            //if (isWait)
+            //{
+            //    wait(); 
+            //}
             MainPage.Log($"鍙戦�丠dl-Link鏁版嵁锛孖P:{Control.Ins.reportIp}:8585");
         }
     }

--
Gitblit v1.8.0