aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeduxas <gediminas.vileikis@gmail.com>2023-07-05 23:32:21 +0300
committerGitHub <noreply@github.com>2023-07-05 23:32:21 +0300
commit7d4f1fb9a037df92f9fbaa020806ed989d86b1e2 (patch)
treeba8c39ec62069c5265f765f6eb5040a168533e79
parent52799453e0ee9a9db3cbad58138712c8c40c458f (diff)
downloadtrackermap-server-7d4f1fb9a037df92f9fbaa020806ed989d86b1e2.tar.gz
trackermap-server-7d4f1fb9a037df92f9fbaa020806ed989d86b1e2.tar.bz2
trackermap-server-7d4f1fb9a037df92f9fbaa020806ed989d86b1e2.zip
Update TeltonikaProtocolDecoder.java
Small fix for #5129 thought traccar expects value in kilometer.
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index c6531c790..c8e0005f9 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -252,7 +252,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
register(83, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_USED, b.readUnsignedInt() * 0.1));
register(84, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_LEVEL, b.readUnsignedShort() * 0.1));
register(85, fmbXXX, (p, b) -> p.set(Position.KEY_RPM, b.readUnsignedShort()));
- register(87, fmbXXX, (p, b) -> p.set(Position.KEY_OBD_ODOMETER, b.readUnsignedInt() * 0.001));
+ register(87, fmbXXX, (p, b) -> p.set(Position.KEY_OBD_ODOMETER, b.readUnsignedInt()));
register(89, fmbXXX, (p, b) -> p.set("fuelLevelPercentage", b.readUnsignedByte()));
register(90, null, (p, b) -> p.set(Position.KEY_DOOR, b.readUnsignedShort()));
register(110, fmbXXX, (p, b) -> p.set(Position.KEY_FUEL_CONSUMPTION, b.readUnsignedShort() * 0.1));