mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
call into internal l2cap handler if specified for events
This commit is contained in:
parent
b5a49eb182
commit
1b0354c019
@ -648,7 +648,7 @@ void l2cap_close_connection(connection_t *connection){
|
||||
// notify client/protocol handler
|
||||
void l2cap_dispatch(l2cap_channel_t *channel, uint8_t type, uint8_t * data, uint16_t size){
|
||||
if (channel->packet_handler) {
|
||||
|
||||
(* (channel->packet_handler))(type, 0, data, size);
|
||||
} else {
|
||||
(*event_packet_handler)(channel->connection, data, size);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user