From 20ac86632a7d42c7ed4cb888219a05cf7ba4c8b0 Mon Sep 17 00:00:00 2001 From: lukasha12 <66280366+lukasha12@users.noreply.github.com> Date: Tue, 2 Jun 2020 01:09:19 +0200 Subject: 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 --- src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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; -- cgit v1.2.3