-
Notifications
You must be signed in to change notification settings - Fork 646
Open
Description
Hi, Michael:
in "S7.net\Types\Struct.cs"
case "Double":
numBytes = Math.Ceiling(numBytes);
if ((numBytes / 2 - Math.Floor(numBytes / 2.0)) > 0)
numBytes++;
numBytes += 4;
break;
default:
numBytes += GetStructSize(info.FieldType);
break;
I think in the Default case also need a function
numBytes = Math.Ceiling(numBytes);
if ((numBytes / 2 - Math.Floor(numBytes / 2.0)) > 0)
numBytes++;
Functions "FromBytes", "ToBytes", "GetStructSize" are affected. Please have a look~~~
Metadata
Metadata
Assignees
Labels
No labels