diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-17 11:33:20 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-17 19:26:35 +0500 |
commit | 311a106c0339199b3398b5f53c72286db92d5fcf (patch) | |
tree | ea2f44044e148b93bfd9aa7953fbf0b2ea65120c /src/org/traccar/protocol/Mta6ProtocolDecoder.java | |
parent | 81eaa754481df6390175a8dc01e6378dcd9fc485 (diff) | |
download | trackermap-server-311a106c0339199b3398b5f53c72286db92d5fcf.tar.gz trackermap-server-311a106c0339199b3398b5f53c72286db92d5fcf.tar.bz2 trackermap-server-311a106c0339199b3398b5f53c72286db92d5fcf.zip |
Mta6 fixed KEY_FUEL meaning
Diffstat (limited to 'src/org/traccar/protocol/Mta6ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Mta6ProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Mta6ProtocolDecoder.java b/src/org/traccar/protocol/Mta6ProtocolDecoder.java index ea1902c89..b6aea9092 100644 --- a/src/org/traccar/protocol/Mta6ProtocolDecoder.java +++ b/src/org/traccar/protocol/Mta6ProtocolDecoder.java @@ -159,7 +159,8 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder { } if (BitUtil.check(flags, 4)) { - position.set(Position.KEY_FUEL, buf.readUnsignedInt() + "|" + buf.readUnsignedInt()); + position.set(Position.KEY_FUEL_CONSUMPTION + "Accumulator1", buf.readUnsignedInt()); + position.set(Position.KEY_FUEL_CONSUMPTION + "Accumulator2", buf.readUnsignedInt()); position.set("hours1", buf.readUnsignedShort()); position.set("hours2", buf.readUnsignedShort()); } |