Skip to content

Commit

Permalink
Removed unnecessary parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavofcalmeida authored Feb 8, 2017
1 parent 3055284 commit da4aa93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/traccar/protocol/MxtProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void sendResponse(Channel channel, int device, long id, int crc)
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
Expand Down

0 comments on commit da4aa93

Please sign in to comment.