diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-04-11 10:26:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-04-11 10:26:16 -0700 |
commit | bfe7df0681c09fd3f9ca325da881301955ba040e (patch) | |
tree | 904f73b9f59e3a66d4d70a8dbefec7f1b246c403 | |
parent | 2aaadf1b8c793548558f87465cff50b991181ee1 (diff) | |
download | trackermap-server-bfe7df0681c09fd3f9ca325da881301955ba040e.tar.gz trackermap-server-bfe7df0681c09fd3f9ca325da881301955ba040e.tar.bz2 trackermap-server-bfe7df0681c09fd3f9ca325da881301955ba040e.zip |
Fix fuel decoding
-rw-r--r-- | src/main/java/org/traccar/protocol/BceProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java index a259e027a..6292334a2 100644 --- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java @@ -107,7 +107,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder { buf.readUnsignedByte(); // acceleration pedal } if (BitUtil.check(mask, 2)) { - position.set(Position.KEY_FUEL_USED, buf.readUnsignedIntLE()); + position.set(Position.KEY_FUEL_USED, buf.readUnsignedIntLE() * 0.5); } if (BitUtil.check(mask, 3)) { position.set(Position.KEY_FUEL_LEVEL, buf.readUnsignedByte()); |