mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-28 00:35:42 +00:00
use l2cap_create_channel instead of deprecated l2cap_create_channel_internal
This commit is contained in:
parent
4b7dd87a0e
commit
90a28bde02
@ -1568,8 +1568,10 @@ int bnep_connect(void * connection, bd_addr_t addr, uint16_t l2cap_psm, uint16_t
|
|||||||
channel->uuid_source = uuid_src;
|
channel->uuid_source = uuid_src;
|
||||||
channel->uuid_dest = uuid_dest;
|
channel->uuid_dest = uuid_dest;
|
||||||
|
|
||||||
l2cap_create_channel_internal(connection, bnep_packet_handler, addr, l2cap_psm, l2cap_max_mtu());
|
uint8_t status = l2cap_create_channel(bnep_packet_handler, addr, l2cap_psm, l2cap_max_mtu(), NULL);
|
||||||
|
if (status){
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user