diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-30 09:23:28 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-30 09:23:28 +1200 |
commit | 15a7049210f7bcdfb56b6afaedbd9d23d2050bcb (patch) | |
tree | 997164c597d11c87184209bfaa82812ff9d032af /src/org/traccar | |
parent | 520aae604878a1237fde5c99a3dd8d2e97cc19e9 (diff) | |
download | trackermap-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.tar.gz trackermap-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.tar.bz2 trackermap-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.zip |
Fix speed value unit
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/org/traccar/protocol/Tk103ProtocolDecoder.java index 3c2466543..fb83c59d8 100644 --- a/src/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -123,9 +123,9 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { // Speed if (Boolean.valueOf(Context.getProps().getProperty(getProtocolName() + ".mph"))) { - position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(parser.group(index++)))); - } else { position.setSpeed(UnitsConverter.knotsFromMph(Double.valueOf(parser.group(index++)))); + } else { + position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(parser.group(index++)))); } // Time |