Skip to content

Commit c52da18

Browse files
fix #28
fix the issue for latest version of sumo, but old versions will no longer work (not backwards compatible) Co-Authored-By: jiachin1995 <22151272+jiachin1995@users.noreply.github.com>
1 parent 56fe20c commit c52da18

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

CodingConnected.TraCI.NET/Helpers/TraCIDataConverter.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,13 +1226,6 @@ internal static TraCIResult[] HandleResponse(byte[] response)
12261226
offset += 4;
12271227
var subResponseLength = BitConverter.ToInt32(revSubResponseLength, 0);
12281228
len += subResponseLength;
1229-
1230-
// For some reason when the subscription is context subscription
1231-
// we need one extra byte in the len than simply adding SubResponseLength
1232-
var identifier = response.Skip(offset).First();
1233-
var identifierHighPart = identifier >> 4;
1234-
if (identifierHighPart == 0x09)
1235-
len++;
12361229
}
12371230
trresult.Length = --len;
12381231
}

0 commit comments

Comments
 (0)