When a USB device with same VID but different PID is found, it got
selected as STLINK device.
if (devBus && devAddr)
if ((libusb_get_bus_number(list[cnt])!=devBus) || (libusb_get_device_address(list[cnt])!=devAddr)) continue;
if (desc.idProduct == USB_STLINK_32L_PID) break;
if (devBus && devAddr)
if ((libusb_get_bus_number(list[cnt])!=devBus) || (libusb_get_device_address(list[cnt])!=devAddr)) continue;
if (desc.idProduct == USB_STLINK_32L_PID) break;
- if (desc.idProduct == USB_STLINK_PID) slu->protocoll = 1; break;
+ if (desc.idProduct == USB_STLINK_PID) {
+ slu->protocoll = 1;
+ break;
+ }