From c4971ec4333cb659d50a379ce28c93cfa34a89bf Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 20 Jul 2013 17:52:35 +1200 Subject: Fix GH3000 speed units --- src/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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)) { -- cgit v1.2.3