bmp_libusb: Reject non-BMP devices with VID 1d50.

This commit is contained in:
Uwe Bonnes 2021-05-16 22:58:37 +02:00 committed by UweBonnes
parent 36ad6efc6f
commit c3fd198f0d
1 changed files with 3 additions and 2 deletions

View File

@ -222,7 +222,8 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts,bmp_info_t *info)
if (desc.idVendor == VENDOR_ID_BMP) { if (desc.idVendor == VENDOR_ID_BMP) {
if (desc.idProduct == PRODUCT_ID_BMP) { if (desc.idProduct == PRODUCT_ID_BMP) {
type = BMP_TYPE_BMP; type = BMP_TYPE_BMP;
} else if (desc.idProduct == PRODUCT_ID_BMP_BL) { } else {
if (desc.idProduct == PRODUCT_ID_BMP_BL)
DEBUG_WARN("BMP in botloader mode found. Restart or reflash!\n"); DEBUG_WARN("BMP in botloader mode found. Restart or reflash!\n");
continue; continue;
} }