diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-16 20:26:43 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-07-16 20:26:43 -0700 |
commit | b6cdfb459241f0a71f5ff9ce35814656465597dc (patch) | |
tree | e392ab5d199691f3dcd81460cb1e7c90923ebd30 /src/main/java/org/traccar | |
parent | a92c5786ce74994ad20aee12affd75737a565ba2 (diff) | |
download | trackermap-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.tar.gz trackermap-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.tar.bz2 trackermap-server-b6cdfb459241f0a71f5ff9ce35814656465597dc.zip |
Fix issue
Diffstat (limited to 'src/main/java/org/traccar')
-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 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); |