aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatjaž Črnko <matjaz.crnko@gmail.com>2023-06-21 19:48:25 +0200
committerGitHub <noreply@github.com>2023-06-21 19:48:25 +0200
commiteccbcfdd6906979763d0825f2b112a3050343381 (patch)
tree7f85db944542b6b174c24c042b36af94a01ce110
parente43d353b7cc0f2bf34a77d58529c1360683d81c1 (diff)
downloadtrackermap-server-eccbcfdd6906979763d0825f2b112a3050343381.tar.gz
trackermap-server-eccbcfdd6906979763d0825f2b112a3050343381.tar.bz2
trackermap-server-eccbcfdd6906979763d0825f2b112a3050343381.zip
Update src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
-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 d067d2ddc..2122d5081 100644
--- a/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/RuptelaProtocolDecoder.java
@@ -238,7 +238,7 @@ public class RuptelaProtocolDecoder extends BaseProtocolDecoder {
if (type == MSG_EXTENDED_RECORDS) {
int recordExtension = buf.readUnsignedByte();
- int mergeRecordCount = BitUtil.between(recordExtension, 4, 8);
+ int mergeRecordCount = BitUtil.from(recordExtension, 4);
int currentRecord = BitUtil.to(recordExtension, 4);
if (currentRecord > 0 && currentRecord <= mergeRecordCount) {