diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-24 14:02:53 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-08-24 14:03:17 +1200 |
commit | 052d5a61dbb7a94d4ac2ea4f17deff0f99baec58 (patch) | |
tree | e4fa7c3658d3a80d472f41757650be17ab070e3d /src | |
parent | cd774cc87bc88f91b8e1c881b745b9d2439db617 (diff) | |
download | trackermap-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.tar.gz trackermap-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.tar.bz2 trackermap-server-052d5a61dbb7a94d4ac2ea4f17deff0f99baec58.zip |
Decode GT06 battery level
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 2 |
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())); |