aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gl200ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-09-25 23:49:51 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-09-25 23:49:51 +1200
commit1967d118a8132b68b14ea5ed4a4d65700f2c1a87 (patch)
tree34b273e70d608c843fa4d13f9bccfc354f15c089 /src/org/traccar/protocol/Gl200ProtocolDecoder.java
parent6f4411382458a9728fee8638f90f64a2590d9f5d (diff)
downloadtrackermap-server-1967d118a8132b68b14ea5ed4a4d65700f2c1a87.tar.gz
trackermap-server-1967d118a8132b68b14ea5ed4a4d65700f2c1a87.tar.bz2
trackermap-server-1967d118a8132b68b14ea5ed4a4d65700f2c1a87.zip
Fix GL200 location validity (fix #888)
Diffstat (limited to 'src/org/traccar/protocol/Gl200ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gl200ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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++)));