summaryrefslogtreecommitdiffstats
path: root/libirecovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-04 13:05:20 +0200
committerGravatar Nikias Bassen2012-07-04 13:05:20 +0200
commit922db4ec3e43dce111b68343db1c5b8d52ebbddd (patch)
treebb8036a6a4228a83cfbbaca9876cc7fc6137afef /libirecovery.c
parent3f88eb976b22770090aeb1b79063865eef36cac3 (diff)
downloadlibirecovery-922db4ec3e43dce111b68343db1c5b8d52ebbddd.tar.gz
libirecovery-922db4ec3e43dce111b68343db1c5b8d52ebbddd.tar.bz2
only set interface to 1:1 for newer recovery modes
Diffstat (limited to 'libirecovery.c')
-rw-r--r--libirecovery.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libirecovery.c b/libirecovery.c
index 1a6d58f..134e677 100644
--- a/libirecovery.c
+++ b/libirecovery.c
@@ -368,10 +368,12 @@ irecv_error_t irecv_open(irecv_client_t* pclient) {
if (error != IRECV_E_SUCCESS) {
return error;
}
-
+
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);
}