aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/MxtProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-28 11:24:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-28 11:24:47 +1300
commit063e5399efac99e0e73983d0534f37f052b52e49 (patch)
treea63e3a74a794b41dc1dea24e057f4ffdd8173006 /src/org/traccar/protocol/MxtProtocolDecoder.java
parent577b4c6ed826ce723299b42c12a7ca1a29262395 (diff)
downloadtrackermap-server-063e5399efac99e0e73983d0534f37f052b52e49.tar.gz
trackermap-server-063e5399efac99e0e73983d0534f37f052b52e49.tar.bz2
trackermap-server-063e5399efac99e0e73983d0534f37f052b52e49.zip
Add hours decoding to MXT
Diffstat (limited to 'src/org/traccar/protocol/MxtProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/MxtProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MxtProtocolDecoder.java b/src/org/traccar/protocol/MxtProtocolDecoder.java
index a4e36acfb..194e0fb71 100644
--- a/src/org/traccar/protocol/MxtProtocolDecoder.java
+++ b/src/org/traccar/protocol/MxtProtocolDecoder.java
@@ -20,6 +20,7 @@ import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import org.jboss.netty.buffer.ChannelBuffer;
+import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
import org.traccar.helper.BitUtil;
@@ -124,7 +125,7 @@ public class MxtProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(infoGroups, 4)) {
- buf.readUnsignedInt(); // hours
+ position.set("hours", buf.readUnsignedInt());
}
if (BitUtil.check(infoGroups, 5)) {