aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-17 16:57:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-17 16:57:29 -0700
commit79ecdf701ce5db5505c366bafe4f04e4d565ec7d (patch)
treeb185b08db2a8dcc1f3f8455dba715520cb3c6632 /src
parentfd2e2183bb34951e5e9248b77e93b2e4abf1c94e (diff)
downloadtrackermap-server-79ecdf701ce5db5505c366bafe4f04e4d565ec7d.tar.gz
trackermap-server-79ecdf701ce5db5505c366bafe4f04e4d565ec7d.tar.bz2
trackermap-server-79ecdf701ce5db5505c366bafe4f04e4d565ec7d.zip
Fix temperature decoding
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
index 9122eb362..eb8c1c466 100644
--- a/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/NavtelecomProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2021 - 2022 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -293,7 +293,9 @@ public class NavtelecomProtocolDecoder extends BaseProtocolDecoder {
case 51:
case 52:
value = buf.readByte();
- position.set(Position.PREFIX_TEMP + (j + 2 - 45), (value != 0x80) ? value : null);
+ position.set(
+ Position.PREFIX_TEMP + (j + 2 - 45),
+ (value != (byte) 0x80) ? value : null);
break;
default:
buf.skipBytes(getItemLength(j + 1));