GetClassSize return zero. Issue #61.

This commit is contained in:
Marcos Pereira
2016-07-07 11:06:14 +01:00
parent 5b36b774e2
commit df019ac193
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);