aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-09-22 18:43:00 -0700
committerAnton Tananaev <anton@traccar.org>2023-09-22 18:43:00 -0700
commit6f59f756a7d3e86924e762919dbbe13940a6511f (patch)
tree180c7b1f5297a8ae58f0c01753a558bcac3416e3 /src/main/java/org/traccar/protocol
parentd5bc3cc9d97be0df8e0ce46b000556efb08a9451 (diff)
downloadtrackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.tar.gz
trackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.tar.bz2
trackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.zip
Fix TLW2-12BL ADC decoding
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/T800xProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
index 4ddea730c..a1093fc32 100644
--- a/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/T800xProtocolDecoder.java
@@ -391,7 +391,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder {
for (int i = 1; i <= adcCount; i++) {
String value = ByteBufUtil.hexDump(buf.readSlice(2));
if (!value.equals("ffff")) {
- position.set(Position.PREFIX_ADC + i, Integer.parseInt(value) * 0.01);
+ position.set(Position.PREFIX_ADC + i, Integer.parseInt(value, 16) * 0.01);
}
}
}