mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-24 21:39:55 +00:00
store bd addr for any commection complete
This commit is contained in:
parent
d8eb3c955d
commit
b16c0406dd
@ -231,9 +231,11 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack
|
|||||||
case GAP_DEDICATED_BONDING_COMPLETED:
|
case GAP_DEDICATED_BONDING_COMPLETED:
|
||||||
printf("GAP Dedicated Bonding Complete, status %u\n", packet[2]);
|
printf("GAP Dedicated Bonding Complete, status %u\n", packet[2]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HCI_EVENT_CONNECTION_COMPLETE:
|
case HCI_EVENT_CONNECTION_COMPLETE:
|
||||||
if (!packet[2]){
|
if (!packet[2]){
|
||||||
handle = READ_BT_16(packet, 3);
|
handle = READ_BT_16(packet, 3);
|
||||||
|
bt_flip_addr(remote, &packet[5]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user