aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Muratov <binakot@gmail.com>2017-07-14 10:00:05 +0300
committerIvan Muratov <binakot@gmail.com>2017-07-14 10:00:05 +0300
commitfd1d75cb1a6dd1a4af065fec66ab69fcaf359916 (patch)
tree142c1ef478b721c78fe8d46c5f8d3d66950c98b9 /src
parent8684f83d352e01effbe08cacaccb264d4d368575 (diff)
downloadtraccar-server-fd1d75cb1a6dd1a4af065fec66ab69fcaf359916.tar.gz
traccar-server-fd1d75cb1a6dd1a4af065fec66ab69fcaf359916.tar.bz2
traccar-server-fd1d75cb1a6dd1a4af065fec66ab69fcaf359916.zip
Add reading bytes from buffer for non-data packages.
Diffstat (limited to 'src')
-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