From 3fa3659a470dc9ab79a880304f179f08f78fddab Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 28 Jul 2018 10:07:45 +1200 Subject: Update Teltonika validity flag --- src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/org/traccar') 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); -- cgit v1.2.3