diff options
Diffstat (limited to 'libirecovery.c')
-rw-r--r-- | libirecovery.c | 6 |
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); } |