aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-06 11:15:46 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-06 11:15:46 +1200
commit16ebb921e416e94cb9e01340d38c7071882dd65f (patch)
tree7e0fd8ae3fa778f7476ec016d6798b8a0980d69a /src/org/traccar/protocol
parentd31cb022e5cd75bee3a82d8fe2d2f00806146232 (diff)
downloadtraccar-server-16ebb921e416e94cb9e01340d38c7071882dd65f.tar.gz
traccar-server-16ebb921e416e94cb9e01340d38c7071882dd65f.tar.bz2
traccar-server-16ebb921e416e94cb9e01340d38c7071882dd65f.zip
Correct BCE confirmation code
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/BceProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java
index 8f338b8c9..fa951e21d 100644
--- a/src/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/org/traccar/protocol/BceProtocolDecoder.java
@@ -19,7 +19,6 @@ import java.nio.ByteOrder;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
-
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
@@ -64,7 +63,7 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
int dataEnd = buf.readUnsignedShort() + buf.readerIndex();
int type = buf.readUnsignedByte();
- int confirmKey = buf.readUnsignedByte();
+ int confirmKey = buf.readUnsignedByte() & 0x7F;
while (buf.readerIndex() < dataEnd) {