summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-09-21 11:22:18 +0200
committerGravatar Nikias Bassen2012-09-21 11:22:18 +0200
commite22c85cbf5211b3f8b87c9ee824cf4ccd70cab36 (patch)
treed118241b6cdf683366723e6ce1220474f8ab61db /src
parenta66e7cd6ef03ba4ae2af5ebfb62118c76c70b48a (diff)
downloadlibirecovery-e22c85cbf5211b3f8b87c9ee824cf4ccd70cab36.tar.gz
libirecovery-e22c85cbf5211b3f8b87c9ee824cf4ccd70cab36.tar.bz2
updated with iPhone5 models.
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 1e249a5..4db314b 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1607,6 +1607,22 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) {
break;
}
break;
+ case CPID_IPHONE5:
+ if (irecv_get_bdid(client, &bdid) < 0) {
+ break;
+ }
+ switch (bdid) {
+ case BDID_IPHONE51:
+ device_id = DEVICE_IPHONE51;
+ break;
+ case BDID_IPHONE52:
+ device_id = DEVICE_IPHONE52;
+ break;
+ default:
+ device_id = DEVICE_UNKNOWN;
+ break;
+ }
+ break;
default:
device_id = DEVICE_UNKNOWN;