diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-06 11:15:46 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-06 11:15:46 +1200 |
commit | 16ebb921e416e94cb9e01340d38c7071882dd65f (patch) | |
tree | 7e0fd8ae3fa778f7476ec016d6798b8a0980d69a /src/org | |
parent | d31cb022e5cd75bee3a82d8fe2d2f00806146232 (diff) | |
download | trackermap-server-16ebb921e416e94cb9e01340d38c7071882dd65f.tar.gz trackermap-server-16ebb921e416e94cb9e01340d38c7071882dd65f.tar.bz2 trackermap-server-16ebb921e416e94cb9e01340d38c7071882dd65f.zip |
Correct BCE confirmation code
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/BceProtocolDecoder.java | 3 |
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) { |