aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 09:23:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-30 09:23:28 +1200
commit15a7049210f7bcdfb56b6afaedbd9d23d2050bcb (patch)
tree997164c597d11c87184209bfaa82812ff9d032af /src/org
parent520aae604878a1237fde5c99a3dd8d2e97cc19e9 (diff)
downloadtraccar-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.tar.gz
traccar-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.tar.bz2
traccar-server-15a7049210f7bcdfb56b6afaedbd9d23d2050bcb.zip
Fix speed value unit
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Tk103ProtocolDecoder.java4
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