diff options
author | Anton Tananaev <anton@traccar.org> | 2023-09-22 18:43:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-09-22 18:43:00 -0700 |
commit | 6f59f756a7d3e86924e762919dbbe13940a6511f (patch) | |
tree | 180c7b1f5297a8ae58f0c01753a558bcac3416e3 /src/main/java | |
parent | d5bc3cc9d97be0df8e0ce46b000556efb08a9451 (diff) | |
download | trackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.tar.gz trackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.tar.bz2 trackermap-server-6f59f756a7d3e86924e762919dbbe13940a6511f.zip |
Fix TLW2-12BL ADC decoding
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/T800xProtocolDecoder.java | 2 |
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); } } } |