WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/DeviceBase/DeviceCommand.cs
@@ -55,7 +55,7 @@ case TypeCode.Byte: case TypeCode.SByte: case TypeCode.Char: readCount += 1; readCount += sizeof(byte); break; case TypeCode.Int16: case TypeCode.UInt16: @@ -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); }