aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tt8850ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-26 15:12:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-26 15:12:08 +1300
commit3302d7cf5e7d776da723b811f7daf7a7bd24bb25 (patch)
tree1cfa8a9394e10aabb7e5f90f9c883a539f309ae1 /src/org/traccar/protocol/Tt8850ProtocolDecoder.java
parentaea5d9e8df58b37c937db87a272a9d92c64586f5 (diff)
downloadtrackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.gz
trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.bz2
trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.zip
Some minor clean up
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());