diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-15 08:59:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-15 08:59:12 -0700 |
commit | f3f73941c17c0b1d351f65ad3f9924cf6f4fe049 (patch) | |
tree | 1c27d7b0e6aafff8724d96595e06107c54205a67 /src/main | |
parent | 7fd59ea42fa31a01d1164103735691a30c711580 (diff) | |
download | trackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.tar.gz trackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.tar.bz2 trackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.zip |
Decode ADC value
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java index d942edbfe..ee28a5062 100644 --- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -814,7 +814,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { getLastLocation(position, null); if (subType == 0x00) { - position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01); + position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShort() * 0.01); return position; } else if (subType == 0x05) { int flags = buf.readUnsignedByte(); |