summaryrefslogtreecommitdiffstats
path: root/irecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'irecovery.c')
-rw-r--r--irecovery.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/irecovery.c b/irecovery.c
index 39ac425..3e32395 100644
--- a/irecovery.c
+++ b/irecovery.c
@@ -277,6 +277,9 @@ int main(int argc, char* argv[]) {
277 } 277 }
278 } 278 }
279 279
280 if (verbose) irecv_set_debug_level(verbose);
281
282 irecv_init();
280 irecv_client_t client = NULL; 283 irecv_client_t client = NULL;
281 for (i = 0; i <= 5; i++) { 284 for (i = 0; i <= 5; i++) {
282 debug("Attempting to connect... \n"); 285 debug("Attempting to connect... \n");
@@ -291,8 +294,6 @@ int main(int argc, char* argv[]) {
291 } 294 }
292 } 295 }
293 296
294 if (verbose) irecv_set_debug_level(verbose);
295
296 switch (action) { 297 switch (action) {
297 case kResetDevice: 298 case kResetDevice:
298 irecv_reset(client); 299 irecv_reset(client);