From 2f75b4c0a67ccc3a443e7cc4f2f0f909defd9a92 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 01 十一月 2024 09:49:23 +0800 Subject: [PATCH] 版本更新 --- 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