projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
9db0119
)
Merge pull request #258 from MartinNowak/master
author
texane
<texane@gmail.com>
Thu, 21 Aug 2014 05:20:03 +0000
(07:20 +0200)
committer
texane
<texane@gmail.com>
Thu, 21 Aug 2014 05:20:03 +0000
(07:20 +0200)
fix missing error msg when no suitable device is found
src/stlink-usb.c
patch
|
blob
|
history
diff --git
a/src/stlink-usb.c
b/src/stlink-usb.c
index f6004d68c51fe7eb6d447c7112d4f21fdddafc8d..d9faaa9f8d1fc6fc3a68775345e21d9ba7ff3b12 100644
(file)
--- a/
src/stlink-usb.c
+++ b/
src/stlink-usb.c
@@
-770,8
+770,7
@@
stlink_t* stlink_open_usb(const int verbose, int reset) {
devAddr=atoi(c);
ILOG("bus %03d dev %03d\n",devBus, devAddr);
}
- while (cnt){
- cnt--;
+ while (cnt--){
libusb_get_device_descriptor( list[cnt], &desc );
if (desc.idVendor!=USB_ST_VID) continue;
if (devBus && devAddr)