aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-07-15 08:59:12 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-07-15 08:59:12 -0700
commitf3f73941c17c0b1d351f65ad3f9924cf6f4fe049 (patch)
tree1c27d7b0e6aafff8724d96595e06107c54205a67 /src/main/java/org
parent7fd59ea42fa31a01d1164103735691a30c711580 (diff)
downloadtrackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.tar.gz
trackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.tar.bz2
trackermap-server-f3f73941c17c0b1d351f65ad3f9924cf6f4fe049.zip
Decode ADC value
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java2
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();