diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-02-15 11:01:15 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-02-15 11:01:15 -0800 |
commit | c860f15e6a541c72d901d928941912edb943883e (patch) | |
tree | ae06ce2b2dfb3a3143284033f0827ac9efd31dcb /src/main | |
parent | 83618b94c380b2f31b65eba20ee295c824cd2726 (diff) | |
download | trackermap-server-c860f15e6a541c72d901d928941912edb943883e.tar.gz trackermap-server-c860f15e6a541c72d901d928941912edb943883e.tar.bz2 trackermap-server-c860f15e6a541c72d901d928941912edb943883e.zip |
Fix checksum calculation
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/GatorProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java b/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java index cce23288a..087861635 100644 --- a/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java @@ -68,7 +68,7 @@ public class GatorProtocolDecoder extends BaseProtocolDecoder { response.writeByte(checksum); response.writeByte(type); response.writeByte(0); // subtype - response.writeByte(Checksum.sum(response.nioBuffer(2, response.writerIndex()))); + response.writeByte(Checksum.xor(response.nioBuffer(2, response.writerIndex()))); response.writeByte(0x0D); channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } |