Com Window Temp Fix

This commit is contained in:
luosheng
2023-12-19 21:55:04 +08:00
parent 34ba703696
commit 4ecec7a35e

View File

@@ -212,7 +212,7 @@ namespace Modbus.Net
/// <returns>串口实际读入数据个数 </returns> /// <returns>串口实际读入数据个数 </returns>
public int ReadComm(out byte[] readBuf, int bufRoom, int howTime, int byteTime) public int ReadComm(out byte[] readBuf, int bufRoom, int howTime, int byteTime)
{ {
readBuf = new byte[1023]; readBuf = new byte[10230];
Array.Clear(readBuf, 0, readBuf.Length); Array.Clear(readBuf, 0, readBuf.Length);
if (SerialPort.IsOpen == false) if (SerialPort.IsOpen == false)