aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index c80cd9cda..974d2c106 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -97,7 +97,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
response.writeByte(1); // nod
response.writeShort(0);
response.writeShort(Checksum.crc16(
- Checksum.CRC16_IBM, response.nioBuffer(8, response.readableBytes() - 8)));
+ Checksum.CRC16_IBM, response.nioBuffer(8, response.readableBytes() - 10)));
channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}
}