usb_queue: Enable transfer chaining

Unfortunately this seems to be slightly broken. While hackrf_transfer
streams fine, things fall apart when disabling streaming. Not sure why
yet.
This commit is contained in:
Ben Gamari
2013-07-04 15:30:43 -04:00
parent 3e3a57e3ce
commit 5a70772295

View File

@ -127,7 +127,7 @@ void usb_transfer_schedule(
// TODO: disable_interrupts();
usb_transfer_t* tail = endpoint_transfers[index];
endpoint_add_transfer(endpoint, transfer);
if (1 || tail == NULL) {
if (tail == NULL) {
// The queue is currently empty, we need to re-prime
usb_endpoint_schedule_wait(endpoint, &transfer->td);
} else {