diff options
author | Nikias Bassen | 2012-02-09 02:39:05 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-09 02:39:05 +0100 |
commit | a7dcea5c4cf995ec7fe40548afc781f7fd799210 (patch) | |
tree | 4930a20889947cb84be2bfd4b60e70bd0d949ad3 /src/recovery.c | |
parent | 829c6cc434e9d89a42bc9fb6dce3f4e320cd6e2d (diff) | |
download | idevicerestore-a7dcea5c4cf995ec7fe40548afc781f7fd799210.tar.gz idevicerestore-a7dcea5c4cf995ec7fe40548afc781f7fd799210.tar.bz2 |
add support for targeting a device by ECID
Diffstat (limited to 'src/recovery.c')
-rw-r--r-- | src/recovery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/recovery.c b/src/recovery.c index 41ed4fb..9f4f200 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -69,7 +69,7 @@ int recovery_client_new(struct idevicerestore_client_t* client) { } for (i = 1; i <= attempts; i++) { - recovery_error = irecv_open(&recovery); + recovery_error = irecv_open(&recovery, client->ecid); if (recovery_error == IRECV_E_SUCCESS) { break; } @@ -98,12 +98,12 @@ int recovery_client_new(struct idevicerestore_client_t* client) { return 0; } -int recovery_check_mode() { +int recovery_check_mode(struct idevicerestore_client_t* client) { irecv_client_t recovery = NULL; irecv_error_t recovery_error = IRECV_E_SUCCESS; irecv_init(); - recovery_error=irecv_open(&recovery); + recovery_error=irecv_open(&recovery, client->ecid); if (recovery_error != IRECV_E_SUCCESS) { return -1; |