aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-01-26 18:03:01 -0800
committerAnton Tananaev <anton@traccar.org>2024-01-26 18:03:01 -0800
commit29d50ef59b59026925b580c72c27aed09ab78500 (patch)
tree5e8c6c8f97791ac4e9f4528ef4668e141ea18d4f
parent97f0ed1d19bc638ff5866bcdf5163f89801859b0 (diff)
downloadtrackermap-server-29d50ef59b59026925b580c72c27aed09ab78500.tar.gz
trackermap-server-29d50ef59b59026925b580c72c27aed09ab78500.tar.bz2
trackermap-server-29d50ef59b59026925b580c72c27aed09ab78500.zip
Fix Ruptela fuel level
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
index 55b3c900f..402262348 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -163,7 +163,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_OBD_SPEED, readValue(buf, length, true));
break;
case 98:
- position.set("fuelRate", readValue(buf, length, true) * 100 / 255.0);
+ position.set(Position.KEY_FUEL_LEVEL, readValue(buf, length, true) * 100 / 255.0);
break;
case 100:
position.set(Position.KEY_FUEL_CONSUMPTION, readValue(buf, length, true) / 20.0);