diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-27 15:15:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-27 15:15:29 +1200 |
commit | 38e77023844a5c76112ed79ddf8308cedfc3e099 (patch) | |
tree | d79c8583b15f7a66c5a7495f9f8c9c72d840c2f3 /src/org/traccar/protocol | |
parent | 61f82e3dce810d99bfdd02e6b7e66c6f617a13b5 (diff) | |
download | traccar-server-38e77023844a5c76112ed79ddf8308cedfc3e099.tar.gz traccar-server-38e77023844a5c76112ed79ddf8308cedfc3e099.tar.bz2 traccar-server-38e77023844a5c76112ed79ddf8308cedfc3e099.zip |
Fix Tramigo frame decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/TramigoFrameDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TramigoFrameDecoder.java b/src/org/traccar/protocol/TramigoFrameDecoder.java index fae9efecf..aaaaccb60 100644 --- a/src/org/traccar/protocol/TramigoFrameDecoder.java +++ b/src/org/traccar/protocol/TramigoFrameDecoder.java @@ -31,9 +31,9 @@ public class TramigoFrameDecoder extends BaseFrameDecoder { int length; if (buf.getUnsignedByte(buf.readerIndex()) == 0x80) { - length = buf.getUnsignedShort(buf.readerIndex() + 6); - } else { length = buf.getUnsignedShortLE(buf.readerIndex() + 6); + } else { + length = buf.getUnsignedShort(buf.readerIndex() + 6); } if (length >= buf.readableBytes()) { |