2014-08-27 update 3

This commit is contained in:
parallelbgls@outlook.com
2014-08-28 08:53:30 +08:00
parent da82933c52
commit eb631389a9
4 changed files with 19 additions and 21 deletions

View File

@@ -122,6 +122,7 @@ namespace ModBus.Net
}
byte[] data = new byte[200];
Thread.Sleep(100);
int i = serialPort1.Read(data, 0, serialPort1.BytesToRead);
byte[] returndata = new byte[i];
Array.Copy(data, 0, returndata, 0, i);