diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-27 05:53:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-03-27 05:53:40 +1300 |
commit | f2d31534703eb7b56a4c1ce82d354fcbb4254266 (patch) | |
tree | da429f5b7e1f7c8e1928a157224752de9af742be /src/org/traccar/protocol | |
parent | cf619556709df6d5481d2e4f712ddd6eeebab89d (diff) | |
download | traccar-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.tar.gz traccar-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.tar.bz2 traccar-server-f2d31534703eb7b56a4c1ce82d354fcbb4254266.zip |
Reimplement CRC8 and CRC16 calculation
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/EgtsProtocolDecoder.java | 2 |
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); |