From 00fe22af967682a17f86d90108cc76bfc3503b1f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 17 Jun 2017 18:52:26 +1200 Subject: Fix typo in DMT decoder --- src/org/traccar/protocol/DmtProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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 -- cgit v1.2.3