Skip to content

Commit

Permalink
hosted/ftdi_bmp: Fixed a bug in ftdi_lookup_cable_by_product result…
Browse files Browse the repository at this point in the history
…ing in a lookup failure if the cable type was specified on the command line
  • Loading branch information
lethalbit authored and dragonmux committed Sep 16, 2023
1 parent 7bf56b0 commit c7ebdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/hosted/ftdi_bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7ebdb7

Please sign in to comment.