diff options
author | lukasha12 <66280366+lukasha12@users.noreply.github.com> | 2020-06-02 01:09:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 16:09:19 -0700 |
commit | 20ac86632a7d42c7ed4cb888219a05cf7ba4c8b0 (patch) | |
tree | 48ee73c47993adab18bf3223edf76792fed63347 /src/main/java/org/traccar/protocol | |
parent | b2a42d3bf6bda2147576c75f1bdca7a93c1ddfe6 (diff) | |
download | traccar-server-20ac86632a7d42c7ed4cb888219a05cf7ba4c8b0.tar.gz traccar-server-20ac86632a7d42c7ed4cb888219a05cf7ba4c8b0.tar.bz2 traccar-server-20ac86632a7d42c7ed4cb888219a05cf7ba4c8b0.zip |
Change fuel level from io89 to io84 (#4536)
Change fuel level from io89 to io84.
Io84 this is a fuel in litres * 0.1
https://wiki.teltonika-gps.com/view/FMB_AVL_ID
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java index afcd884c0..36116cc5e 100644 --- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -260,12 +260,12 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { case 83: position.set(Position.KEY_FUEL_USED, readValue(buf, length, false) * 0.1); break; + case 84: + position.set(Position.KEY_FUEL_LEVEL, readValue(buf, length, false) * 0.1); + break; case 85: position.set(Position.KEY_RPM, readValue(buf, length, false)); break; - case 89: - position.set(Position.KEY_FUEL_LEVEL, readValue(buf, length, false)); - break; case 90: position.set(Position.KEY_DOOR, readValue(buf, length, false)); break; |