aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
index 9300acf60..186b81470 100644
--- a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -155,10 +155,10 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
break;
case 3:
if (BitUtil.check(mask, 6)) {
- data.readUnsignedShort();
+ position.set("tag" + i + "Humidity", data.readUnsignedShort());
}
if (BitUtil.check(mask, 5)) {
- data.readUnsignedShort();
+ position.set("tag" + i + "Temp", data.readUnsignedShort());
}
if (BitUtil.check(mask, 3)) {
position.set("tag" + i + "Rssi", data.readUnsignedByte());