aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-20 20:32:16 -0700
committerAnton Tananaev <anton@traccar.org>2024-03-20 20:32:16 -0700
commitb6be94fef718926f5575257ab2724f5e538e215f (patch)
tree65f6397012e2f05d9d9be683066a26228d6d3a0b /src/main/java
parent5b8b40faebf6996f1d2f5aef4c733dfe13d73b1b (diff)
downloadtrackermap-server-b6be94fef718926f5575257ab2724f5e538e215f.tar.gz
trackermap-server-b6be94fef718926f5575257ab2724f5e538e215f.tar.bz2
trackermap-server-b6be94fef718926f5575257ab2724f5e538e215f.zip
Support 4G TK905B-G battery level
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index 0a8540543..2186fb91f 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -678,7 +678,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShort(), buf.readUnsignedInt()));
position.setNetwork(network);
break;
- case 0xE1:
+ case 0x00A8:
+ case 0x00E1:
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte());
break;
default: