Allow OSX fastboot to work with more devices.
ClearPipeStallBothEnds() appears to fail on some devices, but if we ignore that error then fastboot does work. So ignore the error. Change-Id: Ic866ece28a57c081e34079e1a032fa8155301ddf
This commit is contained in:
parent
29a96aff5f
commit
286d50fe34
1 changed files with 2 additions and 4 deletions
|
|
@ -231,8 +231,7 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) {
|
|||
kr = (*interface)->ClearPipeStallBothEnds(interface,
|
||||
handle->bulkIn);
|
||||
if (kr != 0) {
|
||||
ERR("could not clear input pipe; result %d", kr);
|
||||
return -1;
|
||||
ERR("could not clear input pipe; result %x, ignoring...\n", kr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -240,8 +239,7 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) {
|
|||
kr = (*interface)->ClearPipeStallBothEnds(interface,
|
||||
handle->bulkOut);
|
||||
if (kr != 0) {
|
||||
ERR("could not clear output pipe; result %d", kr);
|
||||
return -1;
|
||||
ERR("could not clear output pipe; result %x, ignoring....\n", kr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue