diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-24 21:32:41 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-24 21:32:41 -0800 |
commit | a9855cd2df5e364c66bb419eb0ab7fb4d66f2643 (patch) | |
tree | 5bcc6be2935cb67e409d66908b3e0c6b05eb946c /src/main/java | |
parent | f4134fb1a1749e4556b6fdcfd539d4e8a78a2e93 (diff) | |
download | trackermap-server-a9855cd2df5e364c66bb419eb0ab7fb4d66f2643.tar.gz trackermap-server-a9855cd2df5e364c66bb419eb0ab7fb4d66f2643.tar.bz2 trackermap-server-a9855cd2df5e364c66bb419eb0ab7fb4d66f2643.zip |
Decode fuel data
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/BceProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java index 30f9bb1f3..c71cdffd9 100644 --- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java @@ -83,10 +83,10 @@ public class BceProtocolDecoder extends BaseProtocolDecoder { buf.skipBytes(4); } if (BitUtil.check(mask, 12)) { - buf.skipBytes(2); + position.set("fuel1", buf.readUnsignedShort()); } if (BitUtil.check(mask, 13)) { - buf.skipBytes(2); + position.set("fuel2", buf.readUnsignedShort()); } if (BitUtil.check(mask, 14)) { |