kopia lustrzana https://github.com/stlink-org/stlink
Merge pull request #258 from MartinNowak/master
fix missing error msg when no suitable device is foundpull/263/head
commit
8c87483cb4
|
@ -770,8 +770,7 @@ stlink_t* stlink_open_usb(const int verbose, int reset) {
|
||||||
devAddr=atoi(c);
|
devAddr=atoi(c);
|
||||||
ILOG("bus %03d dev %03d\n",devBus, devAddr);
|
ILOG("bus %03d dev %03d\n",devBus, devAddr);
|
||||||
}
|
}
|
||||||
while (cnt){
|
while (cnt--){
|
||||||
cnt--;
|
|
||||||
libusb_get_device_descriptor( list[cnt], &desc );
|
libusb_get_device_descriptor( list[cnt], &desc );
|
||||||
if (desc.idVendor!=USB_ST_VID) continue;
|
if (desc.idVendor!=USB_ST_VID) continue;
|
||||||
if (devBus && devAddr)
|
if (devBus && devAddr)
|
||||||
|
|
Ładowanie…
Reference in New Issue