aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-02 15:55:32 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-02-02 15:55:32 -0800
commitc6ce16f71d3cb8c04c080ebd57c5dd53e2b9229a (patch)
tree45715cb7df09e78cc3cff40744f4aa938cd4099a /src/main/java/org/traccar
parentee1dbcf048a922b6023b0714989b454b7dfe9587 (diff)
downloadtrackermap-server-c6ce16f71d3cb8c04c080ebd57c5dd53e2b9229a.tar.gz
trackermap-server-c6ce16f71d3cb8c04c080ebd57c5dd53e2b9229a.tar.bz2
trackermap-server-c6ce16f71d3cb8c04c080ebd57c5dd53e2b9229a.zip
Fix unit tests
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Arnavi4FrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Arnavi4FrameDecoder.java b/src/main/java/org/traccar/protocol/Arnavi4FrameDecoder.java
index fae2d3fde..6a6f820b0 100644
--- a/src/main/java/org/traccar/protocol/Arnavi4FrameDecoder.java
+++ b/src/main/java/org/traccar/protocol/Arnavi4FrameDecoder.java
@@ -51,7 +51,7 @@ public class Arnavi4FrameDecoder extends BaseFrameDecoder {
while (pos + PACKET_WRAPPER_LENGTH < buf.readableBytes()
&& buf.getByte(pos) != PACKAGE_END_SIGN) {
- int dataLength = buf.getUnsignedShort(pos + 1);
+ int dataLength = buf.getUnsignedShortLE(pos + 1);
pos += PACKET_WRAPPER_LENGTH + dataLength;
}