diff options
Diffstat (limited to 'src')
-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 |