From c7ebdb7b33ae343dd2b8372c3b362973225d3b47 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Sat, 16 Sep 2023 14:26:04 -0700 Subject: [PATCH] hosted/ftdi_bmp: Fixed a bug in `ftdi_lookup_cable_by_product` resulting in a lookup failure if the cable type was specified on the command line --- src/platforms/hosted/ftdi_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {