aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-29 08:38:12 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-29 08:38:12 -0800
commit2810e724193fac01e06e8412dae7bde3955fb46b (patch)
treead4ab95db572f81ba6c698a12f48921e4b7016e2 /src/main
parent8d2df830d61243333d6785e179caa80592f1e970 (diff)
downloadtrackermap-server-2810e724193fac01e06e8412dae7bde3955fb46b.tar.gz
trackermap-server-2810e724193fac01e06e8412dae7bde3955fb46b.tar.bz2
trackermap-server-2810e724193fac01e06e8412dae7bde3955fb46b.zip
Decode 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 6d57c3339..b0cd1ab8c 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -317,6 +317,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.1);
break;
case 0xD4:
+ case 0xFE:
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte());
break;
case 0xD5: