From bfe7df0681c09fd3f9ca325da881301955ba040e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 11 Apr 2020 10:26:16 -0700 Subject: Fix fuel decoding --- src/main/java/org/traccar/protocol/BceProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') 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()); -- cgit v1.2.3