aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/DmtProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-17 18:52:26 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-17 18:52:26 +1200
commit00fe22af967682a17f86d90108cc76bfc3503b1f (patch)
tree0d33d10028dde521ea06eb6e8edc1034f5c07ebe /src/org/traccar/protocol/DmtProtocolDecoder.java
parenta16e97566a2950d6f5fd98fc2d66d93636f483e0 (diff)
downloadtrackermap-server-00fe22af967682a17f86d90108cc76bfc3503b1f.tar.gz
trackermap-server-00fe22af967682a17f86d90108cc76bfc3503b1f.tar.bz2
trackermap-server-00fe22af967682a17f86d90108cc76bfc3503b1f.zip
Fix typo in DMT decoder
Diffstat (limited to 'src/org/traccar/protocol/DmtProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/DmtProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java
index de51cce7a..39462a469 100644
--- a/src/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/org/traccar/protocol/DmtProtocolDecoder.java
@@ -117,7 +117,7 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder {
position.setFixTime(new Date(1356998400000L + buf.readUnsignedInt() * 1000));
position.setLatitude(buf.readInt() * 0.0000001);
position.setLongitude(buf.readInt() * 0.0000001);
- position.setLongitude(buf.readShort());
+ position.setAltitude(buf.readShort());
position.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort()));
buf.readUnsignedByte(); // speed accuracy