aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/DmtProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-16 01:01:19 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-06-16 01:01:19 +1200
commit216e7ede1ba6e7298bd032b113057803b5b8f635 (patch)
tree818b629e7c8687c932e7082a9c7d811ca0c98cf4 /src/org/traccar/protocol/DmtProtocolDecoder.java
parentbf57beec25228d58df8604e23d8709f6d196f3c5 (diff)
downloadtrackermap-server-216e7ede1ba6e7298bd032b113057803b5b8f635.tar.gz
trackermap-server-216e7ede1ba6e7298bd032b113057803b5b8f635.tar.bz2
trackermap-server-216e7ede1ba6e7298bd032b113057803b5b8f635.zip
Fix DMT GPS data decoding
Diffstat (limited to 'src/org/traccar/protocol/DmtProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/DmtProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/DmtProtocolDecoder.java b/src/org/traccar/protocol/DmtProtocolDecoder.java
index 9b4f9400b..de51cce7a 100644
--- a/src/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/org/traccar/protocol/DmtProtocolDecoder.java
@@ -117,6 +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.setSpeed(UnitsConverter.knotsFromCps(buf.readUnsignedShort()));
buf.readUnsignedByte(); // speed accuracy