aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MeiligaoFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/MeiligaoFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/MeiligaoFrameDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/MeiligaoFrameDecoder.java b/src/org/traccar/protocol/MeiligaoFrameDecoder.java
index ad1db6c89..e54a44286 100644
--- a/src/org/traccar/protocol/MeiligaoFrameDecoder.java
+++ b/src/org/traccar/protocol/MeiligaoFrameDecoder.java
@@ -39,8 +39,7 @@ public class MeiligaoFrameDecoder extends FrameDecoder {
if (buf.readableBytes() >= MESSAGE_HEADER) {
int length = buf.getUnsignedShort(buf.readerIndex() + 2);
if (buf.readableBytes() >= length) {
- buf.skipBytes(MESSAGE_HEADER);
- return buf.readBytes(length - MESSAGE_HEADER);
+ return buf.readBytes(length);
}
}