diff --git a/src/platforms/hosted/bmp_libusb.c b/src/platforms/hosted/bmp_libusb.c index 0d70b13773d..6c04a1f3924 100644 --- a/src/platforms/hosted/bmp_libusb.c +++ b/src/platforms/hosted/bmp_libusb.c @@ -549,6 +549,7 @@ int find_debuggers(bmda_cli_options_s *cl_opts, bmda_probe_s *info) // Don't know the cable type, ask user to specify with "-c" DEBUG_WARN("Multiple FTDI adapters match Vendor and Product ID.\n"); DEBUG_WARN("Please specify adapter type on command line using \"-c\" option.\n"); + probe_info_list_free(probe_list); return -1; //false } /* If the selected probe is CMSIS-DAP, check for v2 interfaces */ diff --git a/src/platforms/hosted/ftdi_bmp.c b/src/platforms/hosted/ftdi_bmp.c index 6cbab602a18..3a9f6ec5d23 100644 --- a/src/platforms/hosted/ftdi_bmp.c +++ b/src/platforms/hosted/ftdi_bmp.c @@ -412,7 +412,7 @@ bool ftdi_lookup_adapter_from_vid_pid(bmda_cli_options_s *const cl_opts, const p bool ftdi_lookup_cable_by_product(bmda_cli_options_s *cl_opts, const char *product) { if (cl_opts->opt_cable) - return false; + return true; for (const cable_desc_s *cable = &cable_desc[0]; cable->vendor; ++cable) { if (cable->description && strstr(product, cable->description) != 0) {