Skip to content

Commit c7ebdb7

Browse files
lethalbitdragonmux
authored andcommitted
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
1 parent 7bf56b0 commit c7ebdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/hosted/ftdi_bmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ bool ftdi_lookup_adapter_from_vid_pid(bmda_cli_options_s *const cl_opts, const p
412412
bool ftdi_lookup_cable_by_product(bmda_cli_options_s *cl_opts, const char *product)
413413
{
414414
if (cl_opts->opt_cable)
415-
return false;
415+
return true;
416416

417417
for (const cable_desc_s *cable = &cable_desc[0]; cable->vendor; ++cable) {
418418
if (cable->description && strstr(product, cable->description) != 0) {

0 commit comments

Comments
 (0)