From 242964620fba304bca0801f94b4e9bdccc950c6e Mon Sep 17 00:00:00 2001 From: yaowen liu <1539177313@qq.com> Date: Sun, 19 Nov 2023 12:29:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DosingSystem/ExcuteControl .cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/DosingSystem/ExcuteControl .cs b/DosingSystem/ExcuteControl .cs index bea7d71a..8795f426 100644 --- a/DosingSystem/ExcuteControl .cs +++ b/DosingSystem/ExcuteControl .cs @@ -1438,7 +1438,6 @@ namespace BPASmartClient.DosingSystem } else { - doDeviceCount.TryAdd(DeviceInquire.GetInstance.devices[i].IpAddress, 0); } @@ -1578,7 +1577,6 @@ namespace BPASmartClient.DosingSystem } else { - DeviceParModel deviceSet = Json.Data.deviceParModels?.ToList().Find(a => a.MaterialName == DeviceInquire.GetInstance.devices[i].DeviceName); DeviceInquire.GetInstance.DeviceLists[DeviceInquire.GetInstance.devices[i].IpAddress].modbusTcp.Write(DeviceAddress.TranspportSp.ToAdd(), 600); DeviceInquire.GetInstance.DeviceLists[DeviceInquire.GetInstance.devices[i].IpAddress].modbusTcp.Write(DeviceAddress.TranspportSwitch.ToAdd(), (ushort)1); }