summaryrefslogtreecommitdiffstats
path: root/src/dfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dfu.c')
-rw-r--r--src/dfu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dfu.c b/src/dfu.c
index a016c9d..d692608 100644
--- a/src/dfu.c
+++ b/src/dfu.c
@@ -250,6 +250,8 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
return -1;
}
+ irecv_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");
@@ -315,6 +317,8 @@ int dfu_enter_recovery(struct idevicerestore_client_t* client, plist_t build_ide
return -1;
}
+ irecv_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");