Skip to content

Commit

Permalink
imx_usb: use device found by find_imx_device
Browse files Browse the repository at this point in the history
Signed-off-by: abellynow <abellynow@users.noreply.github.com>
  • Loading branch information
abellynow committed May 8, 2019
1 parent abe7f5d commit 29fa8ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imx_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ int do_autodetect_dev(char const *base_path, char const *conf_path,
printf("Trying to open device vid=0x%04x pid=0x%04x", mach->vid, mach->pid);
fflush(stdout);
for (retry = 0; retry < 50; retry++) {
h = libusb_open_device_with_vid_pid(NULL, mach->vid, mach->pid);
h = NULL;
err = libusb_open(dev, &h);
if (h)
break;

Expand Down

0 comments on commit 29fa8ab

Please sign in to comment.