summaryrefslogtreecommitdiffstats
path: root/src/libirecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libirecovery.c')
-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);
}