aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-17 11:33:20 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-17 19:26:35 +0500
commit311a106c0339199b3398b5f53c72286db92d5fcf (patch)
treeea2f44044e148b93bfd9aa7953fbf0b2ea65120c /src/org/traccar
parent81eaa754481df6390175a8dc01e6378dcd9fc485 (diff)
downloadtraccar-server-311a106c0339199b3398b5f53c72286db92d5fcf.tar.gz
traccar-server-311a106c0339199b3398b5f53c72286db92d5fcf.tar.bz2
traccar-server-311a106c0339199b3398b5f53c72286db92d5fcf.zip
Mta6 fixed KEY_FUEL meaning
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Mta6ProtocolDecoder.java3
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());
}