aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-16 07:01:42 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-16 07:01:42 -0800
commit85501f9cf4918d5eee345f83aed7a31eecb26b8d (patch)
treeabb791814c6d0a6070de1c6b64650b18674a2561 /src/main/java/org
parent1417098fa45a3060f17e0cca6d8226b12e7f174e (diff)
downloadtrackermap-server-85501f9cf4918d5eee345f83aed7a31eecb26b8d.tar.gz
trackermap-server-85501f9cf4918d5eee345f83aed7a31eecb26b8d.tar.bz2
trackermap-server-85501f9cf4918d5eee345f83aed7a31eecb26b8d.zip
Fix temperature index
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index bf8ceaf8a..343141dca 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -536,7 +536,8 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x2F:
case 0x30:
case 0x31:
- position.set(Position.PREFIX_TEMP + buf.readUnsignedByte(), buf.readShortLE() * 0.01);
+ buf.readUnsignedByte(); // label
+ position.set(Position.PREFIX_TEMP + (id - 0x2A), buf.readShortLE() * 0.01);
break;
case 0xFE31:
buf.readUnsignedByte(); // alarm protocol