diff options
author | Martin Szulecki | 2012-02-05 00:19:44 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-05 00:19:44 +0100 |
commit | bb6ebdf30c7c5ed31515e465e897a77191e3fbe8 (patch) | |
tree | cd582a69c1de3bf00d50910e8aea16ad24772be5 | |
parent | 02221092492ca7036aa2ec6b02cbc9fdad850893 (diff) | |
download | idevicerestore-bb6ebdf30c7c5ed31515e465e897a77191e3fbe8.tar.gz idevicerestore-bb6ebdf30c7c5ed31515e465e897a77191e3fbe8.tar.bz2 |
Fix recovery mode for older devices (0x1280/0x1281)
-rw-r--r-- | src/libirecovery.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index a2d409d..d5f3767 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -371,7 +371,9 @@ irecv_error_t irecv_open(irecv_client_t* pclient) { if (client->mode != kDfuMode) { error = irecv_set_interface(client, 0, 0); - error = irecv_set_interface(client, 1, 1); + if (client->mode > kRecoveryMode2) { + error = irecv_set_interface(client, 1, 1); + } } else { error = irecv_set_interface(client, 0, 0); } |