aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-25 19:56:36 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-08-25 19:56:36 -0700
commit02c11aa5bb9506357b5007084e80ef1bbc8ecd78 (patch)
tree77cb6501841d1fed9d53e4780a08e0a4f22d3d91 /src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
parent9f0531ee394ff9f3722d3238964e0d12c83e739e (diff)
downloadtrackermap-server-02c11aa5bb9506357b5007084e80ef1bbc8ecd78.tar.gz
trackermap-server-02c11aa5bb9506357b5007084e80ef1bbc8ecd78.tar.bz2
trackermap-server-02c11aa5bb9506357b5007084e80ef1bbc8ecd78.zip
Fix speed units
Diffstat (limited to 'src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
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++]);