From e0dabde622e384c2dc5849f65acab82d0b8a0adb Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期三, 16 十月 2024 14:43:51 +0800 Subject: [PATCH] 新增堆垛机封装类 --- WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs index ada0081..5cb4938 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs @@ -224,7 +224,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