diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-07-05 21:55:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 21:55:57 -0700 |
commit | b4fbf476b3b9718c3db8c74e20f94c1c0b58f7df (patch) | |
tree | ba8c39ec62069c5265f765f6eb5040a168533e79 /src/main/java/org/traccar | |
parent | 52799453e0ee9a9db3cbad58138712c8c40c458f (diff) | |
parent | 7d4f1fb9a037df92f9fbaa020806ed989d86b1e2 (diff) | |
download | trackermap-server-b4fbf476b3b9718c3db8c74e20f94c1c0b58f7df.tar.gz trackermap-server-b4fbf476b3b9718c3db8c74e20f94c1c0b58f7df.tar.bz2 trackermap-server-b4fbf476b3b9718c3db8c74e20f94c1c0b58f7df.zip |
Merge pull request #5130 from geduxas/patch-1
Update wrong odometer value
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 2 |
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)); |