From 02c11aa5bb9506357b5007084e80ef1bbc8ecd78 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 25 Aug 2019 19:56:36 -0700 Subject: Fix speed units --- src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java index 7204769b2..a2fccb707 100644 --- a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java @@ -71,7 +71,7 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder { position.setTime(decodeTime(values[index++])); position.setLatitude(Double.parseDouble(values[index++])); position.setLongitude(Double.parseDouble(values[index++])); - position.setSpeed(UnitsConverter.knotsFromMps(Double.parseDouble(values[index++]))); + position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(values[index++]))); position.setCourse(Integer.parseInt(values[index++])); int event = Integer.parseInt(values[index++]); -- cgit v1.2.3