From 807dfe60e65b9790014c0029dbe46381f959b145 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期四, 31 十月 2024 17:29:35 +0800
Subject: [PATCH] Create OmronEtherNetCommunicator.cs

---
 WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs
index ada0081..adf69f5 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs
@@ -26,6 +26,9 @@
 
 namespace WIDESEAWCS_QuartzJob.DeviceBase
 {
+    /// <summary>
+    /// 瑗块棬瀛�
+    /// </summary>
     public class DeviceCommand : IDataTransfer
     {
         #region <Const>
@@ -224,7 +227,7 @@
                             bytes.Add(Convert.ToByte(dataLength));
                             bytes.Add(Convert.ToByte(obj.ToString().Length));
                             bytes.AddRange(bytesString);
-                            for (int i = 0; i < dataLength - obj.ToString().Length; i++)
+                            for (int i = 0; i < dataLength - obj.ToString().Length - 2; i++)
                             {
                                 bytes.Add(0);
                             }

--
Gitblit v1.9.3