fix variable length bug for StringEx

This commit is contained in:
Thomas Ze
2018-03-20 22:37:44 +01:00
parent 7cedec5909
commit 117ad5cd1b

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@@ -1255,11 +1255,11 @@ namespace S7.Net
return (varCount < 1) ? 1 : varCount;
case VarType.String:
return varCount;
case VarType.StringEx:
return varCount + 2;
case VarType.Word:
case VarType.Timer:
case VarType.Int:
case VarType.StringEx:
return varCount + 2;
case VarType.Counter:
return varCount * 2;
case VarType.DWord: