diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:24:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-28 11:24:47 +1300 |
commit | 063e5399efac99e0e73983d0534f37f052b52e49 (patch) | |
tree | a63e3a74a794b41dc1dea24e057f4ffdd8173006 /src/org | |
parent | 577b4c6ed826ce723299b42c12a7ca1a29262395 (diff) | |
download | traccar-server-063e5399efac99e0e73983d0534f37f052b52e49.tar.gz traccar-server-063e5399efac99e0e73983d0534f37f052b52e49.tar.bz2 traccar-server-063e5399efac99e0e73983d0534f37f052b52e49.zip |
Add hours decoding to MXT
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/MxtProtocolDecoder.java | 3 |
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)) { |