uru4000: Fix transfer type on interrupt endpoint

It appears the kernel automatically "fixes" this mistake and it works.
the transfer in question is an interrupt transfer and should be submitted
as such. Do that in order to make things more correct and so that the
test can run.
This commit is contained in:
Benjamin Berg 2021-09-08 20:28:48 +02:00
parent 40b3923ca6
commit c162b895c0

View file

@ -360,9 +360,9 @@ start_irq_handler (FpImageDevice *dev)
transfer = fpi_usb_transfer_new (FP_DEVICE (dev)); transfer = fpi_usb_transfer_new (FP_DEVICE (dev));
transfer->ssm = NULL; transfer->ssm = NULL;
transfer->short_is_error = TRUE; transfer->short_is_error = TRUE;
fpi_usb_transfer_fill_bulk (transfer, fpi_usb_transfer_fill_interrupt (transfer,
EP_INTR, EP_INTR,
IRQ_LENGTH); IRQ_LENGTH);
fpi_usb_transfer_submit (transfer, 0, self->irq_cancellable, irq_handler, NULL); fpi_usb_transfer_submit (transfer, 0, self->irq_cancellable, irq_handler, NULL);
} }