diff options
Diffstat (limited to 'src/org/traccar/protocol/SyrusProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/SyrusProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java index 8a12b5e26..5959715d9 100644 --- a/src/org/traccar/protocol/SyrusProtocolDecoder.java +++ b/src/org/traccar/protocol/SyrusProtocolDecoder.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; @@ -154,7 +155,7 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder { position.setLongitude(Double.valueOf(longitude)); // Speed and Course - position.setSpeed(Double.valueOf(parser.group(index++)) * 0.868976); + position.setSpeed(UnitsConverter.knotsFromMph(Double.valueOf(parser.group(index++)))); position.setCourse(Double.valueOf(parser.group(index++))); // Validity |