aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-02 09:29:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-02 09:29:17 +1300
commit1c4aba3129d01a2dc982d1a6f0bed0a05f3f0a79 (patch)
tree3b5064484d013f42e239e175aa8e200b3b8b6a4e
parentc2ecf80df96f9782ef716d01678ed33f886a6480 (diff)
downloadtraccar-server-1c4aba3129d01a2dc982d1a6f0bed0a05f3f0a79.tar.gz
traccar-server-1c4aba3129d01a2dc982d1a6f0bed0a05f3f0a79.tar.bz2
traccar-server-1c4aba3129d01a2dc982d1a6f0bed0a05f3f0a79.zip
Mark Flextrack positions as valid
-rw-r--r--src/org/traccar/protocol/FlextrackProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/FlextrackProtocolDecoder.java b/src/org/traccar/protocol/FlextrackProtocolDecoder.java
index 12ed78bee..9723eda02 100644
--- a/src/org/traccar/protocol/FlextrackProtocolDecoder.java
+++ b/src/org/traccar/protocol/FlextrackProtocolDecoder.java
@@ -143,6 +143,7 @@ public class FlextrackProtocolDecoder extends BaseProtocolDecoder {
}
position.setLongitude(lon);
+ position.setValid(true);
position.setSpeed(UnitsConverter.knotsFromKph(Integer.parseInt(parser.group(index++))));
position.setCourse(Integer.parseInt(parser.group(index++)));