aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-07-20 17:52:35 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-07-20 17:52:35 +1200
commitc4971ec4333cb659d50a379ce28c93cfa34a89bf (patch)
tree647af452cada1d529639f62e949a3e76f06227d7
parentd46ca1ac0b96472eb52604761bd1b49330d18323 (diff)
downloadtrackermap-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.tar.gz
trackermap-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.tar.bz2
trackermap-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.zip
Fix GH3000 speed units
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 2cc7d1477..723f6f93e 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -107,7 +107,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
}
if (checkBit(locationMask, 3)) {
- position.setSpeed((double) buf.readUnsignedByte());
+ position.setSpeed(buf.readUnsignedByte() * 0.539957);
}
if (checkBit(locationMask, 4)) {