aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-12-21 00:05:24 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-12-21 00:05:24 +1300
commitb10a929a464eb866b47d08619d3f792fb00a92e4 (patch)
treee2b5a9a89edc8dd34787b2080bd1eae223dcd913 /src/org/traccar/protocol/MeiligaoProtocolDecoder.java
parent3bfd64939d3710caa1448f3134411bc0c825cc6c (diff)
downloadtrackermap-server-b10a929a464eb866b47d08619d3f792fb00a92e4.tar.gz
trackermap-server-b10a929a464eb866b47d08619d3f792fb00a92e4.tar.bz2
trackermap-server-b10a929a464eb866b47d08619d3f792fb00a92e4.zip
Modify CRC code
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
index 4696343d6..f1332ddf9 100644
--- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java
@@ -108,7 +108,7 @@ public class MeiligaoProtocolDecoder extends GenericProtocolDecoder {
sendBuf.writeByte(0x01);
array = new byte[sendBuf.readableBytes()];
sendBuf.getBytes(0, array);
- sendBuf.writeShort(Crc.crc16Ccitt(array));
+ sendBuf.writeShort(Crc.crc16X25Ccitt(array));
sendBuf.writeByte('\r');
sendBuf.writeByte('\n');
if (channel != null) {