diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-16 22:46:05 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-16 22:46:05 -0800 |
commit | a09958e9c8511e211a760b02d7a6f2daca23029d (patch) | |
tree | 4977a90c99bc2713b73c22dc86cd472f0ddcdc1c /src | |
parent | 31a13a5516cae6b18f5acdaf26e7562173a7997b (diff) | |
download | trackermap-server-a09958e9c8511e211a760b02d7a6f2daca23029d.tar.gz trackermap-server-a09958e9c8511e211a760b02d7a6f2daca23029d.tar.bz2 trackermap-server-a09958e9c8511e211a760b02d7a6f2daca23029d.zip |
Change temperature indexes
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java index 692e737be..78bd33fa0 100644 --- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java @@ -226,7 +226,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { case 26: case 27: case 28: - position.set(Position.PREFIX_TEMP + (id - 24), readValue(buf, length, true) * 0.1); + position.set(Position.PREFIX_TEMP + (id - 24 + 4), readValue(buf, length, true) * 0.1); break; case 66: position.set(Position.KEY_POWER, readValue(buf, length, false) * 0.001); @@ -240,7 +240,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder { case 72: case 73: case 74: - position.set(Position.PREFIX_TEMP + (id - 71 + 4), readValue(buf, length, true) * 0.1); + position.set(Position.PREFIX_TEMP + (id - 71), readValue(buf, length, true) * 0.1); break; case 78: long driverUniqueId = readValue(buf, length, false); |