From 70233af5426b0d1c343ebe87183303a34a9aaa58 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 20 十一月 2024 09:05:38 +0800 Subject: [PATCH] WIDESEAWCS_QuartzJob更新版本 --- 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