aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/ProgressProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/ProgressProtocolDecoder.java b/src/org/traccar/protocol/ProgressProtocolDecoder.java
index 57cf82235..312886591 100644
--- a/src/org/traccar/protocol/ProgressProtocolDecoder.java
+++ b/src/org/traccar/protocol/ProgressProtocolDecoder.java
@@ -150,6 +150,7 @@ public class ProgressProtocolDecoder extends BaseProtocolDecoder {
extendedInfo.append("<alarm>true</alarm>");
}
if (buf.readUnsignedShort() > buf.readableBytes()) {
+ lastIndex += 1;
break; // workaround for device bug
}
lastIndex = buf.readUnsignedInt();