avoid starving by sending DAEMON_EVENT_HCI_PACKET_SENT up the stack

This commit is contained in:
matthias.ringwald@gmail.com 2013-09-02 19:34:21 +00:00
parent dbe1a7904e
commit c733a3cd10

View File

@ -272,6 +272,10 @@ static void handle_completed_transfer(struct libusb_transfer *transfer){
log_info("command done, size %u", transfer->actual_length);
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;
} else {