aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
index f7145c86a..b1b065780 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -789,7 +789,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
default:
}
}
- if (length > 5) {
+ if (length >= 6) {
position.set(Position.KEY_BATTERY_LEVEL, buf.readUnsignedByte());
}
break;