fixed USB VID/PID detection bug

When a USB device with same VID but different PID is found, it got
selected as STLINK device.