diff options
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r-- | tools/irecovery.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c index f250dc5..2db6f4f 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -459,12 +459,18 @@ int main(int argc, char* argv[]) { for (i = 0; i <= 5; i++) { debug("Attempting to connect... \n"); - if (irecv_open_with_ecid(&client, ecid) != IRECV_E_SUCCESS) + irecv_error_t err = irecv_open_with_ecid(&client, ecid); + if (err == IRECV_E_UNSUPPORTED) { + fprintf(stderr, "ERROR: %s\n", irecv_strerror(err)); + return -1; + } + else if (err != IRECV_E_SUCCESS) sleep(1); else break; if (i == 5) { + fprintf(stderr, "ERROR: %s\n", irecv_strerror(err)); return -1; } } |