aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Mta6ProtocolDecoder.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-16 17:46:59 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-17 19:26:34 +0500
commit81eaa754481df6390175a8dc01e6378dcd9fc485 (patch)
tree9df00ae671d97bb17182ae6694f4c7d2be47a351 /src/org/traccar/protocol/Mta6ProtocolDecoder.java
parentbfacd794c443f0f54a27d5d52b33de4628a36009 (diff)
downloadtrackermap-server-81eaa754481df6390175a8dc01e6378dcd9fc485.tar.gz
trackermap-server-81eaa754481df6390175a8dc01e6378dcd9fc485.tar.bz2
trackermap-server-81eaa754481df6390175a8dc01e6378dcd9fc485.zip
- Used constants for fuel consumption
- Fixed Gps103 fuel
Diffstat (limited to 'src/org/traccar/protocol/Mta6ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Mta6ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Mta6ProtocolDecoder.java b/src/org/traccar/protocol/Mta6ProtocolDecoder.java
index 609f0b63e..ea1902c89 100644
--- a/src/org/traccar/protocol/Mta6ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Mta6ProtocolDecoder.java
@@ -231,7 +231,7 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder {
}
if (BitUtil.check(flags, 1)) {
- new FloatReader().readFloat(buf); // fuel consumtion
+ position.set(Position.KEY_FUEL_CONSUMPTION, new FloatReader().readFloat(buf));
position.set("hours", new FloatReader().readFloat(buf));
position.set("tank", buf.readUnsignedByte() * 0.4);
}