diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-25 21:04:33 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 16:04:01 -0500 |
commit | 9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf (patch) | |
tree | e8c059e5cb07749ee7693a9d303139c2069adbe7 /src/org/traccar/protocol/MeitrackProtocolDecoder.java | |
parent | e849902d7a5aa564bd930465f04f6d4b8498ddf2 (diff) | |
download | trackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.gz trackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.tar.bz2 trackermap-server-9d6871fecda9458a8fbf4b9f2a8b2859ae0f2ecf.zip |
Renamed Position.KEY_FUEL to Position.KEY_FUEL_LEVEL;
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/MeitrackProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java index f5253566b..a4a0d2d42 100644 --- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -155,7 +155,7 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { if (parser.hasNext()) { String fuel = parser.next(); - position.set(Position.KEY_FUEL, + position.set(Position.KEY_FUEL_LEVEL, Integer.parseInt(fuel.substring(0, 2), 16) + Integer.parseInt(fuel.substring(2), 16) * 0.01); } |