aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorMatjaž Črnko <matjaz.crnko@gmail.com>2023-06-21 19:11:40 +0200
committerGitHub <noreply@github.com>2023-06-21 19:11:40 +0200
commit5ee370870401ae2e18a477d01f22128c6109f015 (patch)
tree7fd0ac34f01bc09a9ff6f6ca420f5099e692cf50 /src/main/java/org
parent149db397ce7bbf60834260a7585366e515c8de24 (diff)
downloadtrackermap-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')
-rw-r--r--src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java2
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) {