aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-03-01 22:22:04 -0800
committerAnton Tananaev <anton@traccar.org>2022-03-01 22:22:04 -0800
commit90e50e3aafbbcdf3f2ac5698302b939c7149c578 (patch)
tree3eb20f391bce3f04d4da71667e96b33091c014ee /src/main/java/org
parent35cfbcf182e3ccb6497e15febb0b12284e4c3c04 (diff)
downloadtrackermap-server-90e50e3aafbbcdf3f2ac5698302b939c7149c578.tar.gz
trackermap-server-90e50e3aafbbcdf3f2ac5698302b939c7149c578.tar.bz2
trackermap-server-90e50e3aafbbcdf3f2ac5698302b939c7149c578.zip
Fix Navtelecom checksum
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java2
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 8314442a3..7b3b5774c 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.xor(response.nioBuffer()));
+ response.writeByte(Checksum.crc8(Checksum.CRC8_ROHC, response.nioBuffer()));
channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}