diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-09 12:35:05 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-09 12:35:05 -0800 |
commit | ebfc5667699d63c480b7eed87f4869b29dbae744 (patch) | |
tree | e7c2176ede7161ff9cd119227e082bdc3eca9565 /src/org/traccar | |
parent | 88fd0903f101cca7d86e2bd78fe02bbacbd7b6fb (diff) | |
download | traccar-server-ebfc5667699d63c480b7eed87f4869b29dbae744.tar.gz traccar-server-ebfc5667699d63c480b7eed87f4869b29dbae744.tar.bz2 traccar-server-ebfc5667699d63c480b7eed87f4869b29dbae744.zip |
Fix temperature decoding
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/protocol/EelinkProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java index 14bf44fbf..fce176ec5 100644 --- a/src/org/traccar/protocol/EelinkProtocolDecoder.java +++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java @@ -268,7 +268,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder { } if (buf.readableBytes() >= 2) { - position.set(Position.PREFIX_TEMP + 2, buf.readUnsignedShort() / 16.0); + position.set(Position.PREFIX_TEMP + 2, buf.readShort() / 16.0); } } |