Fix VarTypeToByteLength for bit arrays

This commit is contained in:
Michael Croes
2018-07-11 22:19:02 +02:00
parent 94a178478b
commit 4fcab9a167

View File

@@ -172,7 +172,7 @@ namespace S7.Net
switch (varType)
{
case VarType.Bit:
return varCount; //TODO
return varCount + 7 / 8;
case VarType.Byte:
return (varCount < 1) ? 1 : varCount;
case VarType.String: