aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-17 17:26:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-17 17:26:52 -0700
commit6864e0a0a067f432bead08331404d4b141959a64 (patch)
treee1a5bd70c8923aceebc2bf9a83d3e68212f0d456 /src/main
parent2d36cb5e0bbad23064d75f1f9364094b3e2fefa5 (diff)
downloadtrackermap-server-6864e0a0a067f432bead08331404d4b141959a64.tar.gz
trackermap-server-6864e0a0a067f432bead08331404d4b141959a64.tar.bz2
trackermap-server-6864e0a0a067f432bead08331404d4b141959a64.zip
Navtelecom fuel temperature
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index 20e10cdcd..08b1a8d0f 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -278,11 +278,11 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
case 42:
case 43:
value = buf.readUnsignedShortLE();
- position.set("rs485Fuel" + (j + 2 - 38), (value < 65500) ? value : null);
+ position.set("fuel" + (j + 2 - 38), (value < 65500) ? value : null);
break;
case 44:
value = buf.readUnsignedShortLE();
- position.set("rs232Fuel", (value < 65500) ? value : null);
+ position.set(Position.KEY_FUEL_LEVEL, (value < 65500) ? value : null);
break;
case 45:
case 46:
@@ -297,6 +297,14 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
Position.PREFIX_TEMP + (j + 2 - 45),
(value != (byte) 0x80) ? value : null);
break;
+ case 78:
+ case 79:
+ case 80:
+ case 81:
+ case 82:
+ case 83:
+ position.set("fuelTemp" + (j + 2 - 78), (int) buf.readByte());
+ break;
default:
buf.skipBytes(getItemLength(j + 1));
break;