Skip to content

Commit 252b4c1

Browse files
committed
hosted/bmp_libusb: Ensure we always prefer CMSIS-DAP v2 to v1 when scanning interfaces
1 parent bd72136 commit 252b4c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platforms/hosted/bmp_libusb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ static void check_cmsis_interface_type(libusb_device *const device, bmda_probe_s
413413

414414
/* Check if it's a CMSIS-DAP v2 interface */
415415
if (descriptor->bInterfaceClass == 0xffU && descriptor->bNumEndpoints == 2U) {
416+
break;
416417
info->interface_num = descriptor->bInterfaceNumber;
417418
/* Extract the endpoints required */
418419
for (uint8_t index = 0; index < descriptor->bNumEndpoints; ++index) {

0 commit comments

Comments
 (0)