diff options
author | Matjaž Črnko <matjaz.crnko@gmail.com> | 2023-06-21 19:11:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 19:11:40 +0200 |
commit | 5ee370870401ae2e18a477d01f22128c6109f015 (patch) | |
tree | 7fd0ac34f01bc09a9ff6f6ca420f5099e692cf50 /src/main/java/org/traccar/protocol | |
parent | 149db397ce7bbf60834260a7585366e515c8de24 (diff) | |
download | trackermap-server-5ee370870401ae2e18a477d01f22128c6109f015.tar.gz trackermap-server-5ee370870401ae2e18a477d01f22128c6109f015.tar.bz2 trackermap-server-5ee370870401ae2e18a477d01f22128c6109f015.zip |
Update src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java index 1d627c5f3..79e8e1091 100644 --- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java @@ -241,7 +241,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder { int noRecordsToMerge = BitUtil.between(recordExtension, 4, 8); int currentRecord = BitUtil.to(recordExtension, 4); - if (currentRecord > 0 && noRecordsToMerge >= currentRecord) { + if (currentRecord > 0 && currentRecord <= noRecordsToMerge) { if (!positions.isEmpty() && positions.get(positions.size() - 1).getDeviceTime() .compareTo(position.getDeviceTime()) == 0) { |