mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 00:02:27 +00:00
call hci_can_send_packet_now in l2cap_run()
This commit is contained in:
parent
c24735b151
commit
81f99c380e
@ -261,7 +261,7 @@ void l2cap_run(void){
|
|||||||
// check pending signaling responses
|
// check pending signaling responses
|
||||||
while (signaling_responses_pending){
|
while (signaling_responses_pending){
|
||||||
|
|
||||||
// can send?
|
if (hci_can_send_packet_now(HCI_ACL_DATA_PACKET)) break;
|
||||||
|
|
||||||
hci_con_handle_t handle = signaling_responses[0].handle;
|
hci_con_handle_t handle = signaling_responses[0].handle;
|
||||||
uint8_t sig_id = signaling_responses[0].sig_id;
|
uint8_t sig_id = signaling_responses[0].sig_id;
|
||||||
@ -298,7 +298,7 @@ void l2cap_run(void){
|
|||||||
linked_item_t *it;
|
linked_item_t *it;
|
||||||
for (it = (linked_item_t *) l2cap_channels; it ; it = it->next){
|
for (it = (linked_item_t *) l2cap_channels; it ; it = it->next){
|
||||||
|
|
||||||
// can send?
|
if (hci_can_send_packet_now(HCI_ACL_DATA_PACKET)) break;
|
||||||
|
|
||||||
l2cap_channel_t * channel = (l2cap_channel_t *) it;
|
l2cap_channel_t * channel = (l2cap_channel_t *) it;
|
||||||
switch (channel->state){
|
switch (channel->state){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user