diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-03 20:48:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-03 20:48:13 -0800 |
commit | b6eed4bde62316d66c28d3cb029df6e537be17a5 (patch) | |
tree | b55c5300104ba41e551f36e263f504654b670a57 /src/main | |
parent | 143670869a3e3fe36ff8a6f7075cfb42cd0259d1 (diff) | |
download | trackermap-server-b6eed4bde62316d66c28d3cb029df6e537be17a5.tar.gz trackermap-server-b6eed4bde62316d66c28d3cb029df6e537be17a5.tar.bz2 trackermap-server-b6eed4bde62316d66c28d3cb029df6e537be17a5.zip |
Decode fuel level
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/AdmProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/AdmProtocolDecoder.java b/src/main/java/org/traccar/protocol/AdmProtocolDecoder.java index 31064286e..7e3478704 100644 --- a/src/main/java/org/traccar/protocol/AdmProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/AdmProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2012 - 2021 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -97,7 +97,7 @@ public class AdmProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(type, 5)) { for (int i = 1; i <= 3; i++) { - buf.readUnsignedShortLE(); // fuel level + position.set("fuel" + i, buf.readUnsignedShortLE()); } for (int i = 1; i <= 3; i++) { position.set(Position.PREFIX_TEMP + i, buf.readUnsignedByte()); |