bmp_libusb: Exclude Wireless class too.

This commit is contained in:
Uwe Bonnes 2021-11-23 20:29:27 +01:00 committed by UweBonnes
parent bb4151377f
commit 98e3858f7c
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts,bmp_info_t *info)
continue;
}
/* Exclude hubs from testing. Probably more classes could be excluded here!*/
if (desc.bDeviceClass == LIBUSB_CLASS_HUB) {
switch (desc.bDeviceClass) {
case LIBUSB_CLASS_HUB:
case LIBUSB_CLASS_WIRELESS:
continue;
}
libusb_device_handle *handle;