bluez5: deal with old libusb versions

This commit is contained in:
Pauli Virtanen 2021-06-21 21:39:28 +03:00
parent 9d38d375d2
commit b98b9e0e77

View file

@ -478,7 +478,7 @@ static bool check_usb_altsetting_6(struct impl *backend, uint16_t vendor_id, uin
for (iep = 0; iep < idesc->bNumEndpoints; ++iep) { for (iep = 0; iep < idesc->bNumEndpoints; ++iep) {
const struct libusb_endpoint_descriptor *ep = &idesc->endpoint[iep]; const struct libusb_endpoint_descriptor *ep = &idesc->endpoint[iep];
if ((ep->bmAttributes & 0x3) == LIBUSB_ENDPOINT_TRANSFER_TYPE_ISOCHRONOUS) { if ((ep->bmAttributes & 0x3) == 0x1 /* isochronous */) {
ok = true; ok = true;
goto done; goto done;
} }