diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-30 21:04:41 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-30 21:04:41 -0800 |
commit | 9bb414a077ec263de5bc89948c3c104d46c968e9 (patch) | |
tree | 70986871c6c650cf031f49e41774e3da5e981f29 | |
parent | 480aee67810d6cd39e1d8efcdc2bed9b52789292 (diff) | |
download | traccar-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.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 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); |