aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-30 21:04:41 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-30 21:04:41 -0800
commit9bb414a077ec263de5bc89948c3c104d46c968e9 (patch)
tree70986871c6c650cf031f49e41774e3da5e981f29
parent480aee67810d6cd39e1d8efcdc2bed9b52789292 (diff)
downloadtraccar-server-9bb414a077ec263de5bc89948c3c104d46c968e9.tar.gz
traccar-server-9bb414a077ec263de5bc89948c3c104d46c968e9.tar.bz2
traccar-server-9bb414a077ec263de5bc89948c3c104d46c968e9.zip
Fix archive decoding
-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 297f26f51..aa85ea061 100644
--- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java
@@ -581,7 +581,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder {
for (int i = 0; i < count; i++) {
int endIndex = buf.readUnsignedShort() + buf.readerIndex();
Position position = decodeLocation(deviceSession, buf);
- if (locationType == 0) {
+ if (locationType > 0) {
position.set(Position.KEY_ARCHIVE, true);
}
positions.add(position);