aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-06 19:39:56 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-06 19:39:56 -0700
commit5da3b8fcb480736161aa6a0896501f00f197bc13 (patch)
tree67aa29fa73add60f1799690d3e6f0130ca06ad57 /src/main
parent4ece72558c80038728fa67ec51238bac48fc4d64 (diff)
downloadtrackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.tar.gz
trackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.tar.bz2
trackermap-server-5da3b8fcb480736161aa6a0896501f00f197bc13.zip
Decode 808 battery level
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index f13299169..1aebba4e6 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -538,6 +538,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.1);
break;
case 0xD4:
+ case 0xE1:
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte());
break;
case 0xD5: