summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-02-05 00:19:44 +0100
committerGravatar Nikias Bassen2012-02-05 00:19:44 +0100
commitbb6ebdf30c7c5ed31515e465e897a77191e3fbe8 (patch)
treecd582a69c1de3bf00d50910e8aea16ad24772be5 /src
parent02221092492ca7036aa2ec6b02cbc9fdad850893 (diff)
downloadidevicerestore-bb6ebdf30c7c5ed31515e465e897a77191e3fbe8.tar.gz
idevicerestore-bb6ebdf30c7c5ed31515e465e897a77191e3fbe8.tar.bz2
Fix recovery mode for older devices (0x1280/0x1281)
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c4
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);
}