mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 18:41:12 +00:00
hci: ignore upper 4 bits for HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS
This commit is contained in:
parent
5d07396b24
commit
80117cebe7
@ -1928,7 +1928,7 @@ static void event_handler(uint8_t *packet, int size){
|
|||||||
case HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS:{
|
case HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS:{
|
||||||
int offset = 3;
|
int offset = 3;
|
||||||
for (i=0; i<packet[2];i++){
|
for (i=0; i<packet[2];i++){
|
||||||
handle = little_endian_read_16(packet, offset);
|
handle = little_endian_read_16(packet, offset) & 0x0fff;
|
||||||
offset += 2;
|
offset += 2;
|
||||||
uint16_t num_packets = little_endian_read_16(packet, offset);
|
uint16_t num_packets = little_endian_read_16(packet, offset);
|
||||||
offset += 2;
|
offset += 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user