From a09958e9c8511e211a760b02d7a6f2daca23029d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Dec 2020 22:46:05 -0800 Subject: Change temperature indexes --- src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar/protocol') 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); -- cgit v1.2.3