mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 00:41:06 +00:00
delete accidentally added code
This commit is contained in:
parent
7856fb3169
commit
3f3e5fbae4
@ -86,20 +86,6 @@ int l2cap_reserve_packet_buffer(void){
|
|||||||
return hci_reserve_packet_buffer();
|
return hci_reserve_packet_buffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
int l2cap_can_send_packet_now(uint16_t local_cid){
|
|
||||||
l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid);
|
|
||||||
if (!channel) return 0;
|
|
||||||
if (!channel->packets_granted) return 0;
|
|
||||||
return hci_can_send_packet_now(HCI_ACL_DATA_PACKET);
|
|
||||||
}
|
|
||||||
|
|
||||||
int l2cap_can_send_packet_now_using_buffer(uint16_t local_cid){
|
|
||||||
l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid);
|
|
||||||
if (!channel) return 0;
|
|
||||||
if (!channel->packets_granted) return 0;
|
|
||||||
return hci_can_send_packet_now_using_packet_buffer(HCI_ACL_DATA_PACKET);
|
|
||||||
}
|
|
||||||
|
|
||||||
int l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t len){
|
int l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t len){
|
||||||
|
|
||||||
if (!hci_can_send_packet_now(HCI_ACL_DATA_PACKET)){
|
if (!hci_can_send_packet_now(HCI_ACL_DATA_PACKET)){
|
||||||
|
Loading…
Reference in New Issue
Block a user