From b6cdfb459241f0a71f5ff9ce35814656465597dc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 16 Jul 2020 20:26:43 -0700 Subject: Fix issue --- src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index d89bcdbe8..40b05cbab 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -332,7 +332,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { if (BitUtil.check(alarm, 0)) { position.set(Position.KEY_ALARM, Position.ALARM_LOW_POWER); } - } if (product == 3) { + } else if (product == 3) { position.set(Position.KEY_BLOCKED, BitUtil.check(status, 5)); if (BitUtil.check(alarm, 1)) { position.set(Position.KEY_ALARM, Position.ALARM_LOW_POWER); -- cgit v1.2.3