upeksonly: Add a comment that multiple URBs are needed

This commit is contained in:
Benjamin Berg 2020-06-03 00:03:56 +02:00
parent 49983c8ee7
commit 24b1faffde

View file

@ -1403,6 +1403,9 @@ dev_activate (FpImageDevice *dev)
self->num_flying = 0;
self->img_transfers = g_ptr_array_new_with_free_func ((GFreeFunc) fpi_usb_transfer_unref);
/* This might seem odd, but we do need multiple in-flight URBs so that
* we never stop polling the device for more data.
*/
for (i = 0; i < NUM_BULK_TRANSFERS; i++)
{
FpiUsbTransfer *transfer;