View | Details | Raw Unified | Return to bug 443861
Collapse All | Expand All

(-)file_not_specified_in_diff (-1 / +8 lines)
Line  Link Here
0
-- libusb/core.c
0
++ libusb/core.c
Lines 772-777 Link Here
772
API_EXPORTED int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes,
772
API_EXPORTED int usb_interrupt_read(usb_dev_handle *dev, int ep, char *bytes,
773
	int size, int timeout)
773
	int size, int timeout)
774
{
774
{
775
	if (!(ep & USB_ENDPOINT_IN)) {
776
		/* libusb-0.1 will strangely fix up a read request from endpoint
777
		 * 0x01 to be from endpoint 0x81. do the same thing here, but
778
		 * warn about this silly behaviour. */
779
		usbi_warn("endpoint %x is missing IN direction bit, fixing");
780
		ep |= USB_ENDPOINT_IN;
781
	}
775
	return usb_interrupt_io(dev, ep, bytes, size, timeout);
782
	return usb_interrupt_io(dev, ep, bytes, size, timeout);
776
}
783
}
777
784

Return to bug 443861