aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-16 20:26:43 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-07-16 20:26:43 -0700
commitb6cdfb459241f0a71f5ff9ce35814656465597dc (patch)
treee392ab5d199691f3dcd81460cb1e7c90923ebd30 /src/main/java/org/traccar/protocol
parenta92c5786ce74994ad20aee12affd75737a565ba2 (diff)
downloadtraccar-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.tar.gz
traccar-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.tar.bz2
traccar-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.zip
Fix issue
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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 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);