From 836f62d1f58af68d98d3815a67ed82df711c2871 Mon Sep 17 00:00:00 2001 From: jcardus Date: Sun, 30 Jun 2024 04:24:30 +0100 Subject: Actualizar HuabaoProtocolDecoder.java Co-authored-by: Anton Tananaev --- src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3