aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-01-23 20:26:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-01-23 20:26:14 +1300
commit7881ce7a3dd49b29b3a97781233beffcac08d07d (patch)
tree8465478120fcbee833c9f0c2ae6c948495e08f6d /src/org/traccar
parent93eb3766f477b16a8663eb63c2b276935f5945a9 (diff)
downloadtraccar-server-7881ce7a3dd49b29b3a97781233beffcac08d07d.tar.gz
traccar-server-7881ce7a3dd49b29b3a97781233beffcac08d07d.tar.bz2
traccar-server-7881ce7a3dd49b29b3a97781233beffcac08d07d.zip
Fix another issue in progress
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();