Skip to content

Commit

Permalink
Set explicit timeout on USB control transfer
Browse files Browse the repository at this point in the history
This attempts to solve the intermittent issues with serial number
showing up as all question marks when issuing "fastboot devices"
  • Loading branch information
Werner Johansson authored and Dima Zavin committed Jul 1, 2010
1 parent eb42170 commit 931bdcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastboot/usb_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ static int filter_usb_device(int fd, char *ptr, int len, int writable,
ctrl.wIndex = 0;
ctrl.wLength = sizeof(buffer);
ctrl.data = buffer;
ctrl.timeout = 50;

result = ioctl(fd, USBDEVFS_CONTROL, &ctrl);
if (result > 0) {
Expand Down

0 comments on commit 931bdcc

Please sign in to comment.