Fix wrong calculation for S7WString byte length

This commit is contained in:
diego
2021-03-15 19:08:40 +01:00
committed by Michael Croes
parent 13c25fc20b
commit b4b94e1777

View File

@@ -191,6 +191,8 @@ namespace S7.Net
return varCount;
case VarType.S7String:
return varCount + 2;
case VarType.S7WString:
return (varCount * 2) + 4;
case VarType.Word:
case VarType.Timer:
case VarType.Int: