mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
Fix VarTypeToByteLength for bit arrays
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user