diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/SnapperProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SnapperProtocolDecoder.java b/src/main/java/org/traccar/protocol/SnapperProtocolDecoder.java index 25cc1a431..e60ddc431 100644 --- a/src/main/java/org/traccar/protocol/SnapperProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SnapperProtocolDecoder.java @@ -68,8 +68,8 @@ public class SnapperProtocolDecoder extends BaseProtocolDecoder { response.writeByte(3); // protocol version response.writeLongLE(0); // reserved response.writeShortLE(0); // encryption - response.writeIntLE(0); // reserved response.writeIntLE(answer.length()); + response.writeIntLE(0); // reserved response.writeShortLE(index); response.writeByte(Checksum.sum(ByteBuffer.wrap(answer.getBytes(StandardCharsets.US_ASCII)))); response.writeShortLE(type); |