From 6dfc845b3989f598d65491d93a32e2b30a0d173f Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 2 Feb 2012 20:09:53 +0100 Subject: recovery: fix recovery_send_applelogo --- src/recovery.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/recovery.c') diff --git a/src/recovery.c b/src/recovery.c index 0487322..64b0bb0 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -256,8 +256,10 @@ int recovery_send_applelogo(struct idevicerestore_client_t* client, plist_t buil irecv_error_t recovery_error = IRECV_E_SUCCESS; info("Sending %s...\n", component); - if (recovery_client_new(client) < 0) { - return -1; + if (client->recovery == NULL) { + if (recovery_client_new(client) < 0) { + return -1; + } } if (recovery_send_component(client, build_identity, component) < 0) { @@ -265,7 +267,7 @@ int recovery_send_applelogo(struct idevicerestore_client_t* client, plist_t buil return -1; } - recovery_error = irecv_send_command(client->recovery->client, "setpicture 1"); + recovery_error = irecv_send_command(client->recovery->client, "setpicture 0"); if (recovery_error != IRECV_E_SUCCESS) { error("ERROR: Unable to set %s\n", component); return -1; -- cgit v1.1-32-gdbae