aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-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) {