From d2ed6819210dfaa9f49350190ec4a47b8c768530 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Fri, 17 Sep 2021 15:11:50 +0200 Subject: [PATCH] hosted/ftdi: Fix detect devices w/o genuine description but with given cable --- src/platforms/hosted/bmp_libusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/hosted/bmp_libusb.c b/src/platforms/hosted/bmp_libusb.c index 248fcd3..00304d6 100644 --- a/src/platforms/hosted/bmp_libusb.c +++ b/src/platforms/hosted/bmp_libusb.c @@ -329,7 +329,7 @@ rescan: } else ++found_debuggers; } - if (found_debuggers == 0 && ftdi_unknown) + if (found_debuggers == 0 && ftdi_unknown && !cl_opts->opt_cable) DEBUG_WARN("Generic FTDI MPSSE VID/PID found. Please specify exact type with \"-c \" !\n"); if (found_debuggers == 1 && !cl_opts->opt_cable && info->bmp_type == BMP_TYPE_LIBFTDI) cl_opts->opt_cable = active_cable;