diff options
author | Anton Tananaev <anton@traccar.org> | 2023-02-04 07:27:20 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-02-04 07:27:20 -0800 |
commit | 1e354ec746635b5773150ac4169ac7468cb227b9 (patch) | |
tree | 7cbb5c5d62828ca3554b76312fca30b91acb2cfa /src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java | |
parent | 74008e1053d49b407eb8eb44d7d60537bdf22047 (diff) | |
download | trackermap-server-1e354ec746635b5773150ac4169ac7468cb227b9.tar.gz trackermap-server-1e354ec746635b5773150ac4169ac7468cb227b9.tar.bz2 trackermap-server-1e354ec746635b5773150ac4169ac7468cb227b9.zip |
Fix temperature decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java index cb0e10042..db1b365c3 100644 --- a/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/EelinkProtocolDecoder.java @@ -314,7 +314,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder { } if (buf.readableBytes() >= 12) { - position.set(Position.PREFIX_TEMP + 1, buf.readUnsignedShort() / 256.0); + position.set(Position.PREFIX_TEMP + 1, buf.readShort() / 256.0); position.set("humidity", buf.readUnsignedShort() * 0.1); position.set("illuminance", buf.readUnsignedInt() / 256.0); position.set("co2", buf.readUnsignedInt()); |