From 3099d53fae70aa2f7aba0c123b1feecd8f072ef1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 26 Nov 2018 10:14:25 +1300 Subject: Fix GV300W CAN decoding --- src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index e004ce994..97cc8f987 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -729,6 +729,9 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); if (BitUtil.check(reportMask, 30)) { + while (values[index].isEmpty()) { + index += 1; + } position.setValid(Integer.parseInt(values[index++]) > 0); if (!values[index].isEmpty()) { position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(values[index++]))); -- cgit v1.2.3