From ac13cf5611d40358eed31983399324fd4b68a8db Mon Sep 17 00:00:00 2001 From: Evgeny S Maksimov Date: Tue, 29 Jan 2019 23:56:24 +0300 Subject: Fix parsing of type "~C" FLEX messages --- src/org/traccar/protocol/NavisProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/org') 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); -- cgit v1.2.3