aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-08-24 14:02:53 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-08-24 14:03:17 +1200
commit052d5a61dbb7a94d4ac2ea4f17deff0f99baec58 (patch)
treee4fa7c3658d3a80d472f41757650be17ab070e3d /src/org/traccar/protocol
parentcd774cc87bc88f91b8e1c881b745b9d2439db617 (diff)
downloadtraccar-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.tar.gz
traccar-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.tar.bz2
traccar-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.zip
Decode GT06 battery level
Diffstat (limited to 'src/org/traccar/protocol')
-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 6fe7102cf..7ef57209a 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -284,7 +284,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
break;
}
- position.set(Position.KEY_BATTERY, buf.readUnsignedByte());
+ position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte() * 100 / 6);
position.set(Position.KEY_RSSI, buf.readUnsignedByte());
position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte()));