hosted/ftdi: Fix detect devices w/o genuine description but with given cable

This commit is contained in:
Uwe Bonnes 2021-09-17 15:11:50 +02:00 committed by Rachel Mant
parent c80f311cb4
commit d2ed681921
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ rescan:
} else } else
++found_debuggers; ++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 <cable>\" !\n"); DEBUG_WARN("Generic FTDI MPSSE VID/PID found. Please specify exact type with \"-c <cable>\" !\n");
if (found_debuggers == 1 && !cl_opts->opt_cable && info->bmp_type == BMP_TYPE_LIBFTDI) if (found_debuggers == 1 && !cl_opts->opt_cable && info->bmp_type == BMP_TYPE_LIBFTDI)
cl_opts->opt_cable = active_cable; cl_opts->opt_cable = active_cable;