diff options
author | jcardus <joaquim_cardeira@hotmail.com> | 2024-06-30 04:24:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-30 04:24:10 +0100 |
commit | 3be24b6d48ab25b6bac711be2fd124b50505fa65 (patch) | |
tree | d5030c5d76caf7c1c169eabac3a5c6339fd93150 /src/main/java/org/traccar/protocol | |
parent | c9a1e9effd1765009d12ffb36281d0755f6dcdb3 (diff) | |
download | trackermap-server-3be24b6d48ab25b6bac711be2fd124b50505fa65.tar.gz trackermap-server-3be24b6d48ab25b6bac711be2fd124b50505fa65.tar.bz2 trackermap-server-3be24b6d48ab25b6bac711be2fd124b50505fa65.zip |
Actualizar HuabaoProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 2 |
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 81f5194c8..f7145c86a 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -777,7 +777,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { break; case 0xF7: position.set(Position.KEY_BATTERY, buf.readUnsignedInt() * 0.001); - if (length > 4) { + if (length >= 5) { short batteryStatus = buf.readUnsignedByte(); switch (batteryStatus) { case 1: |