aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Muratov <binakot@gmail.com>2017-07-14 10:00:52 +0300
committerIvan Muratov <binakot@gmail.com>2017-07-14 10:00:52 +0300
commit6c7ef5fad28f65b1bf2693c25759517d69317f6e (patch)
tree142c1ef478b721c78fe8d46c5f8d3d66950c98b9
parent3493ce57f0b158855bcfaa3882b4600c80519eee (diff)
parentfd1d75cb1a6dd1a4af065fec66ab69fcaf359916 (diff)
downloadtrackermap-server-6c7ef5fad28f65b1bf2693c25759517d69317f6e.tar.gz
trackermap-server-6c7ef5fad28f65b1bf2693c25759517d69317f6e.tar.bz2
trackermap-server-6c7ef5fad28f65b1bf2693c25759517d69317f6e.zip
Merge branch 'arnavi4_hotfix'
-rw-r--r--src/org/traccar/protocol/Arnavi4ProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
index 4422ff4a6..682fc1577 100644
--- a/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Arnavi4ProtocolDecoder.java
@@ -158,6 +158,8 @@ public class Arnavi4ProtocolDecoder extends BaseProtocolDecoder {
if (recordType == RECORD_DATA) {
positions.add(decodePosition(deviceSession, buf, length, time));
+ } else {
+ buf.readBytes(length); // Skip other records
}
buf.readUnsignedByte(); // crc