Skip to content

Commit

Permalink
Use ToBitArray overload with length in ParseBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mycroes committed Jul 17, 2019
1 parent b3cb45d commit 6a84b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S7.Net/PLCHelpers.cs
Expand Up @@ -145,7 +145,7 @@ private object ParseBytes(VarType varType, byte[] bytes, int varCount, byte bitA
}
else
{
return Bit.ToBitArray(bytes);
return Bit.ToBitArray(bytes, varCount);
}
case VarType.DateTime:
if (varCount == 1)
Expand Down

0 comments on commit 6a84b6f

Please sign in to comment.