aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2023-08-30 23:55:13 +0300
committerYuriy Piskarev <yuriy.piskarev@gmail.com>2023-08-30 23:55:13 +0300
commitb735b834755039ef54524db0f1de4484d17dec22 (patch)
tree560fc6d25285eca544f86173660c85ab030cfc74 /src/main
parent6ac4b94179ae340157c59d995d042ed238e9696d (diff)
downloadtrackermap-server-b735b834755039ef54524db0f1de4484d17dec22.tar.gz
trackermap-server-b735b834755039ef54524db0f1de4484d17dec22.tar.bz2
trackermap-server-b735b834755039ef54524db0f1de4484d17dec22.zip
correction:
- used key for fields 38-44
Diffstat (limited to 'src/main')
-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 51b7db763..406a0292c 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -291,11 +291,11 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
case 42:
case 43:
value = buf.readUnsignedShortLE();
- position.set("fuel" + (j + 2 - 38), (value < 65500) ? value : null);
+ position.set(Position.KEY_FUEL_LEVEL + (j + 2 - 38), (value < 65500) ? value : null);
break;
case 44:
value = buf.readUnsignedShortLE();
- position.set("fuel", (value < 65500) ? value : null);
+ position.set(Position.KEY_FUEL_LEVEL, (value < 65500) ? value : null);
break;
case 45:
case 46: