Skip to content

Commit fb6d5a7

Browse files
committed
DeleteObjectResponse: ObjectId encoding is VLQ
1 parent 5c9a2d7 commit fb6d5a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/S7CommPlusDriver/Core/DeleteObjectResponse.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public int Deserialize(Stream buffer)
4545

4646
// Response Set
4747
ret += S7p.DecodeUInt64Vlq(buffer, out ReturnValue);
48-
ret += S7p.DecodeUInt32Vlq(buffer, out DeleteObjectId);
48+
ret += S7p.DecodeUInt32(buffer, out DeleteObjectId);
4949
if ((ReturnValue & 0x4000000000000000) > 0) // Error Extension
5050
{
5151
// Decode the error object, but don't use any informations from it. Must be processed on a higher level.
@@ -71,6 +71,8 @@ public override string ToString()
7171
s += "<ReturnValue>" + ReturnValue.ToString() + "</ReturnValue>" + Environment.NewLine;
7272
s += "<DeleteObjectId>" + DeleteObjectId.ToString() + "</DeleteObjectId>" + Environment.NewLine;
7373
s += "</ResponseSet>" + Environment.NewLine;
74+
s += "<WithIntegrityId>" + WithIntegrityId.ToString() + "</WithIntegrityId>" + Environment.NewLine;
75+
s += "<IntegrityId>" + IntegrityId.ToString() + "</IntegrityId>" + Environment.NewLine;
7476
s += "</DeleteObjectResponse>" + Environment.NewLine;
7577
return s;
7678
}

0 commit comments

Comments
 (0)