aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2023-09-29 23:03:20 +0300
committerYuriy Piskarev <yuriy.piskarev@gmail.com>2023-09-29 23:03:20 +0300
commitdb169dab28ac661adc3eb10e3f395c5b2296d9cc (patch)
tree877cb1f4f81a9371d01d74cdbddfffce636bf2f7
parent8edfd96b0e14df98b817ed1b4f8edab77562d632 (diff)
downloadtrackermap-server-db169dab28ac661adc3eb10e3f395c5b2296d9cc.tar.gz
trackermap-server-db169dab28ac661adc3eb10e3f395c5b2296d9cc.tar.bz2
trackermap-server-db169dab28ac661adc3eb10e3f395c5b2296d9cc.zip
field 54: restore key, rename variable
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index 0d085c871..ffcaa0c6c 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -320,8 +320,8 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 54:
- double dValue = buf.readFloatLE() * 0.5;
- position.set("fuelUsed", (dValue >= 0) ? dValue : null);
+ double fuelUsed = buf.readFloatLE() * 0.5;
+ position.set(Position.KEY_FUEL_USED, (fuelUsed >= 0) ? fuelUsed : null);
break;
case 55:
value = buf.readUnsignedShortLE();