From 47d2d9c475c48184645f60be91952d3d81ec440a Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Thu, 28 Nov 2024 11:34:17 +0800 Subject: [PATCH] =?UTF-8?q?ModbusHelper=E5=8E=BB=E6=8E=89=E5=8D=95?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/Port/ModbusHelper.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DM_Weight/Port/ModbusHelper.cs b/DM_Weight/Port/ModbusHelper.cs index 5d3c9a5..4b572a1 100644 --- a/DM_Weight/Port/ModbusHelper.cs +++ b/DM_Weight/Port/ModbusHelper.cs @@ -35,6 +35,14 @@ namespace DM_Weight.Port } public static ModbusHelper GetInstance() { + //if (instance == null) + //{ + // lock (objLock) + // { + // if (instance == null) + // instance = new ModbusHelper(); + // } + //} if (instance == null) { lock (objLock)