diff options
| author | 2012-09-21 11:22:18 +0200 | |
|---|---|---|
| committer | 2012-09-21 11:22:18 +0200 | |
| commit | e22c85cbf5211b3f8b87c9ee824cf4ccd70cab36 (patch) | |
| tree | d118241b6cdf683366723e6ce1220474f8ab61db /src/libirecovery.c | |
| parent | a66e7cd6ef03ba4ae2af5ebfb62118c76c70b48a (diff) | |
| download | libirecovery-e22c85cbf5211b3f8b87c9ee824cf4ccd70cab36.tar.gz libirecovery-e22c85cbf5211b3f8b87c9ee824cf4ccd70cab36.tar.bz2 | |
updated with iPhone5 models.
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 16 |
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) { | |||
| 1607 | break; | 1607 | break; |
| 1608 | } | 1608 | } |
| 1609 | break; | 1609 | break; |
| 1610 | case CPID_IPHONE5: | ||
| 1611 | if (irecv_get_bdid(client, &bdid) < 0) { | ||
| 1612 | break; | ||
| 1613 | } | ||
| 1614 | switch (bdid) { | ||
| 1615 | case BDID_IPHONE51: | ||
| 1616 | device_id = DEVICE_IPHONE51; | ||
| 1617 | break; | ||
| 1618 | case BDID_IPHONE52: | ||
| 1619 | device_id = DEVICE_IPHONE52; | ||
| 1620 | break; | ||
| 1621 | default: | ||
| 1622 | device_id = DEVICE_UNKNOWN; | ||
| 1623 | break; | ||
| 1624 | } | ||
| 1625 | break; | ||
| 1610 | 1626 | ||
| 1611 | default: | 1627 | default: |
| 1612 | device_id = DEVICE_UNKNOWN; | 1628 | device_id = DEVICE_UNKNOWN; |
