From f560a8e2f8b17f1bca5549557cfc67b43d75346e Mon Sep 17 00:00:00 2001 From: "2248356998 qq.com" <2248356998@qq.com> Date: Thu, 4 May 2023 10:58:45 +0800 Subject: [PATCH] update CollectDeviceThread --- .../Wokers/Collect/CollectDeviceThread.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ThingsGateway.Web.Foundation/Wokers/Collect/CollectDeviceThread.cs b/src/ThingsGateway.Web.Foundation/Wokers/Collect/CollectDeviceThread.cs index 952d104f5..27f68d5b9 100644 --- a/src/ThingsGateway.Web.Foundation/Wokers/Collect/CollectDeviceThread.cs +++ b/src/ThingsGateway.Web.Foundation/Wokers/Collect/CollectDeviceThread.cs @@ -78,7 +78,7 @@ public class CollectDeviceThread : IDisposable { if (device.IsInitSuccess) { - if (CollectDeviceCores.Count > 0) device.Driver.InitDataAdapter(); + if (CollectDeviceCores.Count > 1) device.Driver.InitDataAdapter(); var result = await device.RunActionAsync(StoppingToken); if (result == ThreadRunReturn.None) {