diff options
| author | 2016-06-26 16:15:54 +0200 | |
|---|---|---|
| committer | 2016-06-26 16:15:54 +0200 | |
| commit | 686d6d72d56e700c13abbb75a31ecb385658d96d (patch) | |
| tree | a0d1eeace97278b9b81a5b6803896c12195e7e5d /src/libirecovery.c | |
| parent | c22fb01537f39cc1288b860b24a8ae48e49f06f9 (diff) | |
| download | libirecovery-686d6d72d56e700c13abbb75a31ecb385658d96d.tar.gz libirecovery-686d6d72d56e700c13abbb75a31ecb385658d96d.tar.bz2 | |
IOKit: Make sure to re-enumerate devices after device reset
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 33711c2..3b12dd5 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -1404,6 +1404,11 @@ IRECV_API irecv_error_t irecv_reset(irecv_client_t client) { | |||
| 1404 | debug("error sending device reset: %#x\n", result); | 1404 | debug("error sending device reset: %#x\n", result); |
| 1405 | return IRECV_E_UNKNOWN_ERROR; | 1405 | return IRECV_E_UNKNOWN_ERROR; |
| 1406 | } | 1406 | } |
| 1407 | |||
| 1408 | result = (*client->handle)->USBDeviceReEnumerate(client->handle, 0); | ||
| 1409 | if (result != kIOReturnSuccess && result != kIOReturnNotResponding) { | ||
| 1410 | debug("error re-enumerating device: %#x (ignored)\n", result); | ||
| 1411 | } | ||
| 1407 | #else | 1412 | #else |
| 1408 | libusb_reset_device(client->handle); | 1413 | libusb_reset_device(client->handle); |
| 1409 | #endif | 1414 | #endif |
