Commit b58ccef5 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

Merge branch 'fix_traci_version' into 'master'

add ResponseIdentifier to traci version packet

See merge request !110
parents a09a27d1 8353a9f0
Pipeline #205630 passed with stages
in 123 minutes and 30 seconds
...@@ -181,9 +181,9 @@ public class TraCIPacket extends ByteArrayOutputStreamTraCIWriter { ...@@ -181,9 +181,9 @@ public class TraCIPacket extends ByteArrayOutputStreamTraCIWriter {
addStatusResponse(res.getStatusResponse()); addStatusResponse(res.getStatusResponse());
TraCIWriter cmdBuilder = getCmdBuilder(); TraCIWriter cmdBuilder = getCmdBuilder();
// the command Identifier is written somewhere else, as it is already clear in here, that the command is a // ResponseIdentifier needed by implementation in Veins/OMNeT++
// getVersion command cmdBuilder.writeUnsignedByte(res.getResponseIdentifier().id)
cmdBuilder.writeInt(res.getVersionId()) .writeInt(res.getVersionId())
.writeString(res.getVersionString()); .writeString(res.getVersionString());
addCommandWithoutLen(cmdBuilder.asByteArray()); addCommandWithoutLen(cmdBuilder.asByteArray());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment