diff options
author | Martin Szulecki | 2013-09-26 23:42:45 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-26 23:42:45 +0200 |
commit | 3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf (patch) | |
tree | acc01538bce2b2b8af7a5c3384d806cf116855ea /src | |
parent | 3475c29642b2d824b86848ab81ef300d0f15e1f6 (diff) | |
download | libirecovery-3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf.tar.gz libirecovery-3c7c6e5fb2b50d60774c032afe86f4b8fe753dbf.tar.bz2 |
libirecovery: Set interface correctly to receive intial banner form device
Diffstat (limited to 'src')
-rw-r--r-- | src/libirecovery.c | 4 |
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); } |