diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-09-17 21:12:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-09-17 21:12:01 +1200 |
commit | e20baccccc1aff70db085dc647cb1887f071c92c (patch) | |
tree | 7d41bce18cbeef72850ca982d9041b41c9f841f5 /src/org/traccar/protocol/TotemFrameDecoder.java | |
parent | 57fba5c08cb03fffb360a8a4a3ae530ad94e7679 (diff) | |
download | trackermap-server-e20baccccc1aff70db085dc647cb1887f071c92c.tar.gz trackermap-server-e20baccccc1aff70db085dc647cb1887f071c92c.tar.bz2 trackermap-server-e20baccccc1aff70db085dc647cb1887f071c92c.zip |
Fix totem frame decoder
Diffstat (limited to 'src/org/traccar/protocol/TotemFrameDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TotemFrameDecoder.java | 2 |
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); } |