Use ToBitArray overload with length in ParseBytes

This commit is contained in:
Michael Croes
2018-07-11 22:30:53 +02:00
parent b3cb45de37
commit 6a84b6f124

View File

@@ -145,7 +145,7 @@ namespace S7.Net
}
else
{
return Bit.ToBitArray(bytes);
return Bit.ToBitArray(bytes, varCount);
}
case VarType.DateTime:
if (varCount == 1)