From 4f2dbd1f6a1ec2d9c3c39b4a37b0b7c9ddece4aa Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 23 九月 2021 15:24:01 +0800 Subject: [PATCH] 主页刷新优化 --- HDL_ON/DAL/DriverLayer/Control_Udp.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/Control_Udp.cs b/HDL_ON/DAL/DriverLayer/Control_Udp.cs index 160eee7..37ee1e3 100644 --- a/HDL_ON/DAL/DriverLayer/Control_Udp.cs +++ b/HDL_ON/DAL/DriverLayer/Control_Udp.cs @@ -50,7 +50,7 @@ /// <summary> /// 鍙戦�佹暟鎹紝涓嶉渶瑕佺瓑寰呭洖澶� /// </summary> - public void ControlBytesSend(Command command, byte subnetID, byte deviceID, byte[] gatewayBytes, int sendCount = 3) + public void ControlBytesSend(Command command, byte subnetID, byte deviceID, byte[] gatewayBytes, int sendCount = 3,bool reSend = false) { #if DEBUG string ddd = ""; @@ -69,7 +69,8 @@ SubnetID = subnetID, DeviceID = deviceID, AddData = gatewayBytes, - }, sendCount, false); + }, 3, true); + //}, sendCount, reSend); } /// <summary> @@ -423,7 +424,7 @@ /// </summary> /// <param name="commandString"></param> /// <returns></returns> - public void WriteBusData(Function function, Dictionary<string, string> commandDictionary) + public void WriteBusData(Function function, Dictionary<string, string> commandDictionary,bool reSend = false) { try { -- Gitblit v1.8.0