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); }