diff options
author | Anton Tananaev <anton@traccar.org> | 2023-02-10 17:49:45 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-02-10 17:49:45 -0800 |
commit | 514582dd83c4520948c03eb3fc84444e0d7f5a49 (patch) | |
tree | 4a0b1f2a2643bcb011a68973d8b6914e6612d914 /src/main/java/org | |
parent | 3ba077b0002481bf262a59ff2ad266b04a07c589 (diff) | |
download | trackermap-server-514582dd83c4520948c03eb3fc84444e0d7f5a49.tar.gz trackermap-server-514582dd83c4520948c03eb3fc84444e0d7f5a49.tar.bz2 trackermap-server-514582dd83c4520948c03eb3fc84444e0d7f5a49.zip |
Tramigo T24 frame decoder
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/TramigoFrameDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TramigoFrameDecoder.java b/src/main/java/org/traccar/protocol/TramigoFrameDecoder.java index e4c94dc77..4b0fe52b3 100644 --- a/src/main/java/org/traccar/protocol/TramigoFrameDecoder.java +++ b/src/main/java/org/traccar/protocol/TramigoFrameDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2023 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ public class TramigoFrameDecoder extends BaseFrameDecoder { if (buf.getUnsignedByte(buf.readerIndex()) == 0x80) { length = buf.getUnsignedShortLE(buf.readerIndex() + 6); } else { - length = buf.getUnsignedShort(buf.readerIndex() + 6); + length = buf.getUnsignedShortLE(buf.readerIndex() + 1); } if (length <= buf.readableBytes()) { |