aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/RuptelaProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/RuptelaProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/RuptelaProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/org/traccar/protocol/RuptelaProtocolDecoder.java
index d14fc6d15..833285ca3 100644
--- a/src/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -25,6 +25,7 @@ import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
+import org.traccar.helper.UnitsConverter;
import org.traccar.model.Event;
import org.traccar.model.Position;
@@ -80,7 +81,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
position.set(Event.KEY_SATELLITES, satellites);
position.setValid(satellites >= 3);
- position.setSpeed(buf.readUnsignedShort() * 0.539957);
+ position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort()));
position.set(Event.KEY_HDOP, buf.readUnsignedByte() / 10.0);