libfxlink: use old libusb for compatibility with 1.0.23

This commit is contained in:
Lephenixnoir 2023-03-28 19:35:00 +02:00
parent 1251ca23ee
commit 0c0eb7f4f5
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -142,10 +142,10 @@ static bool find_fxlink_endpoints(struct fxlink_device *fdev, bool quiet)
int type = ed->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK;
if(dir == LIBUSB_ENDPOINT_OUT
&& type == LIBUSB_ENDPOINT_TRANSFER_TYPE_BULK)
&& type == LIBUSB_TRANSFER_TYPE_BULK)
comm->ep_bulk_OUT = ed->bEndpointAddress;
if(dir == LIBUSB_ENDPOINT_IN
&& type == LIBUSB_ENDPOINT_TRANSFER_TYPE_BULK)
&& type == LIBUSB_TRANSFER_TYPE_BULK)
comm->ep_bulk_IN = ed->bEndpointAddress;
}