aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgustavofcalmeida <gustavofarias@gmail.com>2017-02-07 23:11:55 -0300
committerGitHub <noreply@github.com>2017-02-07 23:11:55 -0300
commitda4aa93919f113c5b9ff9c417dc8db72efea6fd1 (patch)
tree01aba5ef10912361a8331fa0fd00e692dcce2c8a /src
parent305528411520755e4b68318eab1e2feecaf96acd (diff)
downloadtrackermap-server-da4aa93919f113c5b9ff9c417dc8db72efea6fd1.tar.gz
trackermap-server-da4aa93919f113c5b9ff9c417dc8db72efea6fd1.tar.bz2
trackermap-server-da4aa93919f113c5b9ff9c417dc8db72efea6fd1.zip
Removed unnecessary parameters
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/MxtProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MxtProtocolDecoder.java b/src/org/traccar/protocol/MxtProtocolDecoder.java
index a86fd0204..eaeeacc97 100644
--- a/src/org/traccar/protocol/MxtProtocolDecoder.java
+++ b/src/org/traccar/protocol/MxtProtocolDecoder.java
@@ -47,7 +47,7 @@ public class MxtProtocolDecoder extends BaseProtocolDecoder {
response.writeInt((int) id);
response.writeShort(crc);
response.writeShort(Checksum.crc16(
- Checksum.CRC16_XMODEM, response.toByteBuffer(0, response.readableBytes())));
+ Checksum.CRC16_XMODEM, response.toByteBuffer()));
ChannelBuffer encoded = ChannelBuffers.dynamicBuffer();
encoded.writeByte(0x01); // header