aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-26 10:14:25 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-26 10:14:25 +1300
commit3099d53fae70aa2f7aba0c123b1feecd8f072ef1 (patch)
tree82de04c415507358906fe6bac4c09a9e8c3d1d2a /src/org/traccar
parent4c6089f544c429dad9cf36cdafe3054cba164033 (diff)
downloadtrackermap-server-3099d53fae70aa2f7aba0c123b1feecd8f072ef1.tar.gz
trackermap-server-3099d53fae70aa2f7aba0c123b1feecd8f072ef1.tar.bz2
trackermap-server-3099d53fae70aa2f7aba0c123b1feecd8f072ef1.zip
Fix GV300W CAN decoding
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gl200TextProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
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++])));