aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-07-28 10:07:45 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-07-28 10:07:45 +1200
commit3fa3659a470dc9ab79a880304f179f08f78fddab (patch)
treedee9250c54068f31283c795572c1f255f77c357a /src/org
parentda0e33ee765053e14b7172bae0f3acd74c2e26eb (diff)
downloadtrackermap-server-3fa3659a470dc9ab79a880304f179f08f78fddab.tar.gz
trackermap-server-3fa3659a470dc9ab79a880304f179f08f78fddab.tar.bz2
trackermap-server-3fa3659a470dc9ab79a880304f179f08f78fddab.zip
Update Teltonika validity flag
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 19f4bd67b..1bd56c176 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -126,9 +126,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY, readValue(buf, length, false) * 0.001);
break;
case 69:
- final long gpsStatus = readValue(buf, length, false);
- position.set("gpsStatus", gpsStatus);
- position.setValid(gpsStatus == 3);
+ position.set("gpsStatus", readValue(buf, length, false));
break;
case 72:
position.set(Position.PREFIX_TEMP + 1, readValue(buf, length, true) * 0.1);