aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorEvgeny S Maksimov <me@vragam.net>2019-01-29 23:56:24 +0300
committerEvgeny S Maksimov <me@vragam.net>2019-01-29 23:56:24 +0300
commitac13cf5611d40358eed31983399324fd4b68a8db (patch)
tree403e2a326b3f03a1490dedfa942e1ad300f0e3a4 /src/org/traccar
parentf68362485cf88d7deae178010c168124bc1fdba8 (diff)
downloadtrackermap-server-ac13cf5611d40358eed31983399324fd4b68a8db.tar.gz
trackermap-server-ac13cf5611d40358eed31983399324fd4b68a8db.tar.bz2
trackermap-server-ac13cf5611d40358eed31983399324fd4b68a8db.zip
Fix parsing of type "~C" FLEX messages
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 92d458559..912e47369 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -539,7 +539,9 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
private Object processFlexSingle(
FlexPositionParser parser, String flexHeader, DeviceSession deviceSession, Channel channel, ByteBuf buf) {
- buf.readUnsignedInt(); // event index
+ if (!flexHeader.equals("~C")) {
+ buf.readUnsignedInt(); // event index
+ }
ParseResult result = parser.parsePosition(deviceSession, buf);