From 7b29a294809bfffeb5cf99769b5efe1a5760625e Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 26 Aug 2016 11:27:00 +0500 Subject: Fix telic protocol speed units --- src/org/traccar/protocol/TelicProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/protocol/TelicProtocolDecoder.java b/src/org/traccar/protocol/TelicProtocolDecoder.java index 818390f60..376ff4c84 100644 --- a/src/org/traccar/protocol/TelicProtocolDecoder.java +++ b/src/org/traccar/protocol/TelicProtocolDecoder.java @@ -21,6 +21,7 @@ import org.traccar.DeviceSession; import org.traccar.helper.DateBuilder; import org.traccar.helper.Parser; import org.traccar.helper.PatternBuilder; +import org.traccar.helper.UnitsConverter; import org.traccar.model.Position; import java.net.SocketAddress; @@ -94,7 +95,7 @@ public class TelicProtocolDecoder extends BaseProtocolDecoder { } position.setValid(parser.nextInt() != 1); - position.setSpeed(parser.nextDouble()); + position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble())); position.setCourse(parser.nextDouble()); position.set(Position.KEY_SATELLITES, parser.next()); -- cgit v1.2.3