mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
fix compile
This commit is contained in:
parent
c3b820cfe6
commit
0e7bc007cb
@ -152,8 +152,8 @@ void l2cap_hand_out_credits(){
|
||||
linked_item_t *it;
|
||||
for (it = (linked_item_t *) l2cap_channels; it ; it = it->next){
|
||||
if (!hci_number_free_acl_slots()) return;
|
||||
if (channel->state != L2CAP_STATE_OPEN) continue;
|
||||
l2cap_channel_t * channel = (l2cap_channel_t *) it;
|
||||
if (channel->state != L2CAP_STATE_OPEN) continue;
|
||||
if (hci_number_outgoing_packets(channel->handle) < 2 && channel->packets_granted == 0) {
|
||||
l2cap_emit_credits(channel, 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user