Commit 8353a9f0 authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

add ResponseIdentifier to traci version packet

parent a09a27d1
Pipeline #205535 passed with stages
in 119 minutes and 11 seconds
......@@ -181,9 +181,9 @@ public class TraCIPacket extends ByteArrayOutputStreamTraCIWriter {
addStatusResponse(res.getStatusResponse());
TraCIWriter cmdBuilder = getCmdBuilder();
// the command Identifier is written somewhere else, as it is already clear in here, that the command is a
// getVersion command
cmdBuilder.writeInt(res.getVersionId())
// ResponseIdentifier needed by implementation in Veins/OMNeT++
cmdBuilder.writeUnsignedByte(res.getResponseIdentifier().id)
.writeInt(res.getVersionId())
.writeString(res.getVersionString());
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