From aade61a4c6f9512f86e440f1b4124ba8eb9c1b6d Mon Sep 17 00:00:00 2001 From: liuwf Date: Wed, 27 Dec 2023 18:47:20 +0800 Subject: [PATCH] change. --- Aucma.Core.RunPlc/RunPlcService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aucma.Core.RunPlc/RunPlcService.cs b/Aucma.Core.RunPlc/RunPlcService.cs index ce447895..faaf26cc 100644 --- a/Aucma.Core.RunPlc/RunPlcService.cs +++ b/Aucma.Core.RunPlc/RunPlcService.cs @@ -48,7 +48,7 @@ namespace Aucma.Core.RunPlc if (allPlcServices == null) return Task.CompletedTask; var list = allPlcServices.FindAll(d => d.PlcType == "Melsec" && d.Enabled == true); - foreach (var item in allPlcServices) + foreach (var item in list) { PlcModel model = new PlcModel(); model.Id = item.Id;