diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-07-20 17:52:35 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-07-20 17:52:35 +1200 |
commit | c4971ec4333cb659d50a379ce28c93cfa34a89bf (patch) | |
tree | 647af452cada1d529639f62e949a3e76f06227d7 /src | |
parent | d46ca1ac0b96472eb52604761bd1b49330d18323 (diff) | |
download | traccar-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.tar.gz traccar-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.tar.bz2 traccar-server-c4971ec4333cb659d50a379ce28c93cfa34a89bf.zip |
Fix GH3000 speed units
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
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)) { |