aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tt8850ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Tt8850ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tt8850ProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Tt8850ProtocolDecoder.java b/src/org/traccar/protocol/Tt8850ProtocolDecoder.java
index c9cb0bb28..32e20c272 100644
--- a/src/org/traccar/protocol/Tt8850ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tt8850ProtocolDecoder.java
@@ -79,9 +79,8 @@ public class Tt8850ProtocolDecoder extends BaseProtocolDecoder {
}
position.setDeviceId(deviceSession.getDeviceId());
- int accuracy = parser.nextInt();
- position.setValid(accuracy < 20);
- position.setAccuracy(accuracy);
+ position.setValid(true);
+ position.setAccuracy(parser.nextInt());
position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
position.setAltitude(parser.nextDouble());