Skip to content

Commit

Permalink
Merge pull request #367 from meisteg/fix_every_other
Browse files Browse the repository at this point in the history
Fix issue where "unknown chip id!" is seen every other time
  • Loading branch information
texane committed Feb 1, 2016
2 parents 67b4543 + ff40ab6 commit def6fc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stlink-usb.c
Expand Up @@ -6,6 +6,7 @@
#include <sys/types.h>
#include <libusb.h>
#include <errno.h>
#include <unistd.h>

#include "stlink-common.h"
#include "stlink-usb.h"
Expand Down Expand Up @@ -879,6 +880,7 @@ stlink_t* stlink_open_usb(const int verbose, int reset, char *p_usb_iserial) {

if (reset) {
stlink_reset(sl);
usleep(10000);
}
stlink_version(sl);
error = stlink_load_device_params(sl);
Expand Down

0 comments on commit def6fc4

Please sign in to comment.