mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
att_dispatch: forward l2cap channel closed
This commit is contained in:
parent
180cbe7900
commit
434166e3bd
@ -195,6 +195,14 @@ static void att_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
|
||||
}
|
||||
}
|
||||
break;
|
||||
case L2CAP_EVENT_CHANNEL_CLOSED:
|
||||
// dispatch to all roles
|
||||
for (index = 0; index < ATT_MAX; index++){
|
||||
if (subscriptions[index].packet_handler != NULL){
|
||||
subscriptions[index].packet_handler(packet_type, channel, packet, size);
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user