diff options
author | Nikias Bassen | 2012-02-02 20:09:53 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-02 20:09:53 +0100 |
commit | 6dfc845b3989f598d65491d93a32e2b30a0d173f (patch) | |
tree | f49d2c3c2e54fbc53b4c122df6d8b0e474053ae5 /src | |
parent | 6ef724e72be1060641c792f480ab34aab0ea738f (diff) | |
download | idevicerestore-6dfc845b3989f598d65491d93a32e2b30a0d173f.tar.gz idevicerestore-6dfc845b3989f598d65491d93a32e2b30a0d173f.tar.bz2 |
recovery: fix recovery_send_applelogo
Diffstat (limited to 'src')
-rw-r--r-- | src/recovery.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |