diff options
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index e8ce634..63072c6 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c | |||
| @@ -1609,7 +1609,7 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { | |||
| 1609 | break; | 1609 | break; |
| 1610 | 1610 | ||
| 1611 | case CPID_APPLETV31: | 1611 | case CPID_APPLETV31: |
| 1612 | // AppleTV 3rd gen. iPad2,4 and iPod5,1 share the same ChipID, so we need to check the BoardID | 1612 | // AppleTV 3rd gen. iPad2,4, iPad 2,5 and iPod5,1 share the same ChipID, so we need to check the BoardID |
| 1613 | if (irecv_get_bdid(client, &bdid) < 0) { | 1613 | if (irecv_get_bdid(client, &bdid) < 0) { |
| 1614 | break; | 1614 | break; |
| 1615 | } | 1615 | } |
| @@ -1620,6 +1620,9 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { | |||
| 1620 | case BDID_IPAD24: | 1620 | case BDID_IPAD24: |
| 1621 | device_id = DEVICE_IPAD24; | 1621 | device_id = DEVICE_IPAD24; |
| 1622 | break; | 1622 | break; |
| 1623 | case BDID_IPAD25: | ||
| 1624 | device_id = DEVICE_IPAD25; | ||
| 1625 | break; | ||
| 1623 | case BDID_IPOD5G: | 1626 | case BDID_IPOD5G: |
| 1624 | device_id = DEVICE_IPOD5G; | 1627 | device_id = DEVICE_IPOD5G; |
| 1625 | break; | 1628 | break; |
| @@ -1646,6 +1649,20 @@ irecv_error_t irecv_get_device(irecv_client_t client, irecv_device_t* device) { | |||
| 1646 | } | 1649 | } |
| 1647 | break; | 1650 | break; |
| 1648 | 1651 | ||
| 1652 | case CPID_IPAD34: | ||
| 1653 | if (irecv_get_bdid(client, &bdid) < 0) { | ||
| 1654 | break; | ||
| 1655 | } | ||
| 1656 | switch (bdid) { | ||
| 1657 | case BDID_IPAD34: | ||
| 1658 | device_id = DEVICE_IPAD34; | ||
| 1659 | break; | ||
| 1660 | default: | ||
| 1661 | device_id = DEVICE_UNKNOWN; | ||
| 1662 | break; | ||
| 1663 | } | ||
| 1664 | break; | ||
| 1665 | |||
| 1649 | default: | 1666 | default: |
| 1650 | device_id = DEVICE_UNKNOWN; | 1667 | device_id = DEVICE_UNKNOWN; |
| 1651 | break; | 1668 | break; |
