From 1967d118a8132b68b14ea5ed4a4d65700f2c1a87 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 25 Sep 2014 23:49:51 +1200 Subject: Fix GL200 location validity (fix #888) --- src/org/traccar/protocol/Gl200ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/Gl200ProtocolDecoder.java b/src/org/traccar/protocol/Gl200ProtocolDecoder.java index 14e8df60e..39fdcca78 100644 --- a/src/org/traccar/protocol/Gl200ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200ProtocolDecoder.java @@ -81,7 +81,7 @@ public class Gl200ProtocolDecoder extends BaseProtocolDecoder { } // Validity - position.setValid(Integer.valueOf(parser.group(index++)) == 0); + position.setValid(Integer.valueOf(parser.group(index++)) < 20); // Position info position.setSpeed(Double.valueOf(parser.group(index++))); -- cgit v1.2.3