From 4ecec7a35e0abb6ab479f64abfdec37f8b4697fd Mon Sep 17 00:00:00 2001 From: luosheng Date: Tue, 19 Dec 2023 21:55:04 +0800 Subject: [PATCH] Com Window Temp Fix --- Modbus.Net/Modbus.Net/Connector/ComConnector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modbus.Net/Modbus.Net/Connector/ComConnector.cs b/Modbus.Net/Modbus.Net/Connector/ComConnector.cs index 1ed5696..fc67097 100644 --- a/Modbus.Net/Modbus.Net/Connector/ComConnector.cs +++ b/Modbus.Net/Modbus.Net/Connector/ComConnector.cs @@ -212,7 +212,7 @@ namespace Modbus.Net /// 串口实际读入数据个数 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); if (SerialPort.IsOpen == false)