summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-26 23:42:45 +0200
committerGravatar Martin Szulecki2013-09-26 23:42:45 +0200
commit3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf (patch)
treeacc01538bce2b2b8af7a5c3384d806cf116855ea
parent3475c29642b2d824b86848ab81ef300d0f15e1f6 (diff)
downloadlibirecovery-3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf.tar.gz
libirecovery-3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf.tar.bz2
libirecovery: Set interface correctly to receive intial banner form device
-rw-r--r--src/libirecovery.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 9956fab..c564ecb 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -597,9 +597,7 @@ irecv_error_t irecv_open_with_ecid(irecv_client_t* pclient, unsigned long long e
if ((client->mode != IRECV_K_DFU_MODE) && (client->mode != IRECV_K_WTF_MODE)) {
error = irecv_usb_set_interface(client, 0, 0);
- if (client->mode > IRECV_K_RECOVERY_MODE_2) {
- error = irecv_usb_set_interface(client, 1, 1);
- }
+ error = irecv_usb_set_interface(client, 1, 1);
} else {
error = irecv_usb_set_interface(client, 0, 0);
}