diff options
author | Anton Tananaev <anton@traccar.org> | 2022-03-03 21:03:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-03-03 21:03:33 -0800 |
commit | fdf49e82c6ac0a3166d65797f3c773df70ff4494 (patch) | |
tree | 7dc049cb6ce59f1462f43b429140b3df019e44d5 /src/main/java | |
parent | 8561b2480c2a0c7d87a5dbbb789e180b4c61fb0a (diff) | |
download | trackermap-server-fdf49e82c6ac0a3166d65797f3c773df70ff4494.tar.gz trackermap-server-fdf49e82c6ac0a3166d65797f3c773df70ff4494.tar.bz2 trackermap-server-fdf49e82c6ac0a3166d65797f3c773df70ff4494.zip |
Fix Navtelecom checksum
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java index 7b3b5774c..5d3a81f2a 100644 --- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java @@ -239,7 +239,7 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder { ByteBuf response = Unpooled.buffer(); response.writeCharSequence(type, StandardCharsets.US_ASCII); response.writeByte(count); - response.writeByte(Checksum.crc8(Checksum.CRC8_ROHC, response.nioBuffer())); + response.writeByte(Checksum.crc8(Checksum.CRC8_EGTS, response.nioBuffer())); channel.writeAndFlush(new NetworkMessage(response, remoteAddress)); } |