aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-05-20 21:40:04 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-05-20 21:40:04 -0700
commit7a29a1140f872764663b48661473a97be522f96c (patch)
treef9e49351806e09b02dbd717cd558f0ab3c1577b0 /src/main/java/org/traccar/protocol/BceProtocolDecoder.java
parent1a4981e5adf0832d8590c964f00578179d85eb98 (diff)
downloadtrackermap-server-7a29a1140f872764663b48661473a97be522f96c.tar.gz
trackermap-server-7a29a1140f872764663b48661473a97be522f96c.tar.bz2
trackermap-server-7a29a1140f872764663b48661473a97be522f96c.zip
Decode temperature sensor
Diffstat (limited to 'src/main/java/org/traccar/protocol/BceProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/BceProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
index 6292334a2..60d705db8 100644
--- a/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/BceProtocolDecoder.java
@@ -171,7 +171,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_DRIVER_UNIQUE_ID, String.valueOf(buf.readLongLE()));
}
if (BitUtil.check(mask, 7)) {
- buf.readUnsignedShortLE(); // dallas temperature
+ position.set(Position.PREFIX_TEMP + 1, buf.readUnsignedShortLE() * 0.1 - 273);
}
if (BitUtil.check(mask, 8)) {
buf.readUnsignedShortLE(); // dallas humidity