mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 00:40:19 +00:00
avoid starving by sending DAEMON_EVENT_HCI_PACKET_SENT up the stack
This commit is contained in:
parent
dbe1a7904e
commit
c733a3cd10
@ -272,6 +272,10 @@ static void handle_completed_transfer(struct libusb_transfer *transfer){
|
|||||||
log_info("command done, size %u", transfer->actual_length);
|
log_info("command done, size %u", transfer->actual_length);
|
||||||
usb_command_active = 0;
|
usb_command_active = 0;
|
||||||
|
|
||||||
|
// notify upper stack that iit might be possible to send again
|
||||||
|
uint8_t event = DAEMON_EVENT_HCI_PACKET_SENT;
|
||||||
|
packet_handler(HCI_EVENT_PACKET, &event, 1);
|
||||||
|
|
||||||
resubmit = 0;
|
resubmit = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user