aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-19 22:29:38 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-19 22:29:38 +1200
commit00e2f8a3575855a8b863e245005b8f83b3314bfb (patch)
treef54c319cdcf94caa8cb1a381af0914053a903d08
parent4ebf7c5a6df152af9c23eb9caab2885ff79e448c (diff)
downloadtraccar-server-00e2f8a3575855a8b863e245005b8f83b3314bfb.tar.gz
traccar-server-00e2f8a3575855a8b863e245005b8f83b3314bfb.tar.bz2
traccar-server-00e2f8a3575855a8b863e245005b8f83b3314bfb.zip
Change power to battery in GT06 decoder
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index f89d20fce..3e875086e 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -160,7 +160,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_IGNITION, BitUtil.check(flags, 1));
position.set(Position.KEY_STATUS, flags);
- position.set(Position.KEY_POWER, buf.readUnsignedByte());
+ position.set(Position.KEY_BATTERY, buf.readUnsignedByte());
position.set(Position.KEY_GSM, buf.readUnsignedByte());
}