From a07f375c66d4581a1c860de18bf5d777098f7534 Mon Sep 17 00:00:00 2001 From: SoulStar Date: Wed, 25 Dec 2024 16:01:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20-=20=E5=90=88=E5=B9=B6=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HighWayIot.Plc/PlcConnect.cs | 2 +- HighWayIot.Winform/HighWayIot.Winform.csproj | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HighWayIot.Plc/PlcConnect.cs b/HighWayIot.Plc/PlcConnect.cs index a926655..d1b06e9 100644 --- a/HighWayIot.Plc/PlcConnect.cs +++ b/HighWayIot.Plc/PlcConnect.cs @@ -37,7 +37,7 @@ namespace HighWayIot.Plc IsPersistentConnection = true, }; var reslt = plc.ConnectServer(); - logHelper.Info($"Plc连接 信息:[{reslt.Message}] 是否成功:[{reslt.IsSuccess.ToString()}] 错误代码:[{reslt.ErrorCode}]"); + logHelper.Info($"Plc连接 信息:[{reslt.Message}] 是否成功:[{reslt.IsSuccess.ToString()}] 错误代码:[{reslt.ErrorCode}]"); if (!reslt.IsSuccess) { logHelper.Info("链接失败:"+reslt.Message); diff --git a/HighWayIot.Winform/HighWayIot.Winform.csproj b/HighWayIot.Winform/HighWayIot.Winform.csproj index 309ccc6..dc40204 100644 --- a/HighWayIot.Winform/HighWayIot.Winform.csproj +++ b/HighWayIot.Winform/HighWayIot.Winform.csproj @@ -36,6 +36,9 @@ + + ..\HighWayIot.Library\HslCommunication.dll +