Commit 62f66e48 authored by Ludovic Rousseau's avatar Ludovic Rousseau

InterruptRead(): revert change 68ece95c

The value in transfer->status is not a libusb_error but a
libusb_transfer_status.

We can't use libusb_error_name() on this value unless we only want to
see LIBUSB_ERROR_UNKNOWN values
parent 36fa4611
......@@ -1362,9 +1362,9 @@ int InterruptRead(int reader_index, int timeout /* in ms */)
default:
/* if libusb_interrupt_transfer() times out we get EILSEQ or EAGAIN */
DEBUG_COMM4("InterruptRead (%d/%d): %s",
DEBUG_COMM4("InterruptRead (%d/%d): %d",
usbDevice[reader_index].bus_number,
usbDevice[reader_index].device_address, libusb_error_name(ret));
usbDevice[reader_index].device_address, ret);
return_value = IFD_COMMUNICATION_ERROR;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment