aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TramigoFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/TramigoFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/TramigoFrameDecoder.java4
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()) {