diff options
author | Evgeny S Maksimov <me@vragam.net> | 2019-01-29 23:56:24 +0300 |
---|---|---|
committer | Evgeny S Maksimov <me@vragam.net> | 2019-01-29 23:56:24 +0300 |
commit | ac13cf5611d40358eed31983399324fd4b68a8db (patch) | |
tree | 403e2a326b3f03a1490dedfa942e1ad300f0e3a4 /src/org/traccar/protocol | |
parent | f68362485cf88d7deae178010c168124bc1fdba8 (diff) | |
download | trackermap-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/protocol')
-rw-r--r-- | src/org/traccar/protocol/NavisProtocolDecoder.java | 4 |
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); |