diff options
author | Nikias Bassen | 2016-06-26 16:26:02 +0200 |
---|---|---|
committer | Nikias Bassen | 2016-06-26 16:26:02 +0200 |
commit | 86974cabea7921046aa0eb27a3f3875b4f78d7ff (patch) | |
tree | dee658e25a6f78077694d40cf3e7bb23ebe53c15 | |
parent | cf1e49a9fd86ae6e1c6855824dac068b417f486c (diff) | |
download | idevicerestore-86974cabea7921046aa0eb27a3f3875b4f78d7ff.tar.gz idevicerestore-86974cabea7921046aa0eb27a3f3875b4f78d7ff.tar.bz2 |
dfu: Remove unnecessary device resets and ZLP packets
These caused DFU restores on OSX to fail. ZLP packets are handled in libirecovery.
-rw-r--r-- | src/dfu.c | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -146,14 +146,6 @@ int dfu_send_buffer(struct idevicerestore_client_t* client, unsigned char* buffe return -1; } - err = irecv_reset(client->dfu->client); - if (err != IRECV_E_SUCCESS) { - error("ERROR: Unable to reset device\n"); - irecv_close(client->dfu->client); - client->dfu->client = NULL; - return -1; - } - return 0; } @@ -356,16 +348,6 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide return -1; } - irecv_usb_control_transfer(client->dfu->client, 0x21, 1, 0, 0, 0, 0, 5000); - - dfu_error = irecv_reset(client->dfu->client); - if (dfu_error != IRECV_E_SUCCESS) { - error("ERROR: Unable to reset device\n"); - irecv_close(client->dfu->client); - client->dfu->client = NULL; - return -1; - } - if (client->build_major > 8) { /* reconnect */ dfu_client_free(client); @@ -424,16 +406,6 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide client->dfu->client = NULL; return -1; } - - irecv_usb_control_transfer(client->dfu->client, 0x21, 1, 0, 0, 0, 0, 5000); - - dfu_error = irecv_reset(client->dfu->client); - if (dfu_error != IRECV_E_SUCCESS) { - error("ERROR: Unable to reset device\n"); - irecv_close(client->dfu->client); - client->dfu->client = NULL; - return -1; - } } dfu_client_free(client); |