aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-19 11:52:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-19 11:52:56 +1300
commitde9a600541738bd14608e740b495693f79bc97a1 (patch)
tree1569ea5dd69cbaeea795e9ed844160a02edb0ebb /src/org
parent56131bb61d845cfd4684ee315d2b713305a4446c (diff)
downloadtrackermap-server-de9a600541738bd14608e740b495693f79bc97a1.tar.gz
trackermap-server-de9a600541738bd14608e740b495693f79bc97a1.tar.bz2
trackermap-server-de9a600541738bd14608e740b495693f79bc97a1.zip
Correctly docode speed for Castel protocol
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java
index bf0d8ea46..e36d086f8 100644
--- a/src/org/traccar/protocol/CastelProtocolDecoder.java
+++ b/src/org/traccar/protocol/CastelProtocolDecoder.java
@@ -65,7 +65,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder {
double lat = buf.readUnsignedInt() / 3600000.0;
double lon = buf.readUnsignedInt() / 3600000.0;
- position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort()));
+ position.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort()));
position.setCourse(buf.readUnsignedShort() % 360);
int flags = buf.readUnsignedByte();