aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TotemFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/TotemFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/TotemFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TotemFrameDecoder.java b/src/org/traccar/protocol/TotemFrameDecoder.java
index 84a14dac6..ad7e160c2 100644
--- a/src/org/traccar/protocol/TotemFrameDecoder.java
+++ b/src/org/traccar/protocol/TotemFrameDecoder.java
@@ -40,7 +40,7 @@ public class TotemFrameDecoder extends FrameDecoder {
}
// Read message
- int length = Integer.parseInt(buf.toString(2, 2, Charset.defaultCharset()), 16) + 1;
+ int length = Integer.parseInt(buf.toString(2, 2, Charset.defaultCharset()), 16);
if (length >= buf.readableBytes()) {
return buf.readBytes(length);
}