aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-27 05:53:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-27 05:53:40 +1300
commitf2d31534703eb7b56a4c1ce82d354fcbb4254266 (patch)
treeda429f5b7e1f7c8e1928a157224752de9af742be /src/org/traccar/protocol
parentcf619556709df6d5481d2e4f712ddd6eeebab89d (diff)
downloadtrackermap-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.tar.gz
trackermap-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.tar.bz2
trackermap-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.zip
Reimplement CRC8 and CRC16 calculation
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/EgtsProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EgtsProtocolDecoder.java b/src/org/traccar/protocol/EgtsProtocolDecoder.java
index 85376b1a5..fe82a51ed 100644
--- a/src/org/traccar/protocol/EgtsProtocolDecoder.java
+++ b/src/org/traccar/protocol/EgtsProtocolDecoder.java
@@ -97,7 +97,7 @@ public class EgtsProtocolDecoder extends BaseProtocolDecoder {
response.writeShort(record.readableBytes());
response.writeShort(packetId++);
response.writeByte(packetType);
- response.writeByte(Checksum.crc8(response.toByteBuffer()));
+ response.writeByte(Checksum.crc8(Checksum.CRC8_EGTS, response.toByteBuffer()));
response.writeBytes(record);
response.writeShort(recordChecksum);