mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 22:38:27 +08:00
GetClassSize return zero. Issue #61.
This commit is contained in:
@@ -1011,7 +1011,7 @@ namespace S7.Net
|
||||
while (numBytes > 0)
|
||||
{
|
||||
var maxToRead = (int)Math.Min(numBytes, 200);
|
||||
byte[] bytes = (byte[])Read(DataType.DataBlock, db, index, VarType.Byte, (int)maxToRead);
|
||||
byte[] bytes = ReadBytes(DataType.DataBlock, db, index, maxToRead);
|
||||
if (bytes == null)
|
||||
return new List<byte>();
|
||||
resultBytes.AddRange(bytes);
|
||||
|
||||
@@ -1008,7 +1008,7 @@ namespace S7.Net
|
||||
while (numBytes > 0)
|
||||
{
|
||||
var maxToRead = (int)Math.Min(numBytes, 200);
|
||||
byte[] bytes = (byte[])Read(DataType.DataBlock, db, index, VarType.Byte, (int)maxToRead);
|
||||
byte[] bytes = ReadBytes(DataType.DataBlock, db, index, maxToRead);
|
||||
if (bytes == null)
|
||||
return new List<byte>();
|
||||
resultBytes.AddRange(bytes);
|
||||
|
||||
Reference in New Issue
Block a user