aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-09 12:35:05 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-09 12:35:05 -0800
commitebfc5667699d63c480b7eed87f4869b29dbae744 (patch)
treee7c2176ede7161ff9cd119227e082bdc3eca9565 /src/org/traccar
parent88fd0903f101cca7d86e2bd78fe02bbacbd7b6fb (diff)
downloadtrackermap-server-ebfc5667699d63c480b7eed87f4869b29dbae744.tar.gz
trackermap-server-ebfc5667699d63c480b7eed87f4869b29dbae744.tar.bz2
trackermap-server-ebfc5667699d63c480b7eed87f4869b29dbae744.zip
Fix temperature decoding
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java2
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);
}
}