From fe0c96c9a6bdef1282cef60fbbcb38b246d1fe69 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Mon, 2 Dec 2013 20:58:16 +0100 Subject: libirecovery: Set USB interfaces correctly on device connection for non-WIN32 Now the USB interface is set the same way the WIN32 code does it. This prevents older devices from getting "stuck" or "slow" after uploading the iBEC to a device. --- src/libirecovery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libirecovery.c b/src/libirecovery.c index 23e1501..5bf76da 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -807,7 +807,9 @@ 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); - error = irecv_usb_set_interface(client, 1, 1); + if (client->mode > IRECV_K_RECOVERY_MODE_2) { + error = irecv_usb_set_interface(client, 1, 1); + } } else { error = irecv_usb_set_interface(client, 0, 0); } -- cgit v1.1-32-gdbae