summaryrefslogtreecommitdiffstats
path: root/irecovery.c
diff options
context:
space:
mode:
authorGravatar pod2g2010-12-28 22:56:16 +0100
committerGravatar pod2g2010-12-28 22:56:16 +0100
commitf36be3da06a2175f49ed2b987b684fdf66871b58 (patch)
tree998a5468298b6ebe3dc316681df19a60769d1327 /irecovery.c
parent9440393948de8d8db43f29f3bc859d9968085f15 (diff)
downloadlibirecovery-f36be3da06a2175f49ed2b987b684fdf66871b58.tar.gz
libirecovery-f36be3da06a2175f49ed2b987b684fdf66871b58.tar.bz2
MacOSX test: Console reading fixed
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[]) {
}
}
+ if (verbose) irecv_set_debug_level(verbose);
+
+ irecv_init();
irecv_client_t client = NULL;
for (i = 0; i <= 5; i++) {
debug("Attempting to connect... \n");
@@ -291,8 +294,6 @@ int main(int argc, char* argv[]) {
}
}
- if (verbose) irecv_set_debug_level(verbose);
-
switch (action) {
case kResetDevice:
irecv_reset(client);