From da4aa93919f113c5b9ff9c417dc8db72efea6fd1 Mon Sep 17 00:00:00 2001 From: gustavofcalmeida Date: Tue, 7 Feb 2017 23:11:55 -0300 Subject: Removed unnecessary parameters --- src/org/traccar/protocol/MxtProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3