summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index 4db314b..e8ce634 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1607,6 +1607,28 @@ 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
1611 case CPID_APPLETV31:
1612 // AppleTV 3rd gen. iPad2,4 and iPod5,1 share the same ChipID, so we need to check the BoardID
1613 if (irecv_get_bdid(client, &bdid) < 0) {
1614 break;
1615 }
1616 switch (bdid) {
1617 case BDID_APPLETV31:
1618 device_id = DEVICE_APPLETV31;
1619 break;
1620 case BDID_IPAD24:
1621 device_id = DEVICE_IPAD24;
1622 break;
1623 case BDID_IPOD5G:
1624 device_id = DEVICE_IPOD5G;
1625 break;
1626 default:
1627 device_id = DEVICE_UNKNOWN;
1628 break;
1629 }
1630 break;
1631
1610 case CPID_IPHONE5: 1632 case CPID_IPHONE5:
1611 if (irecv_get_bdid(client, &bdid) < 0) { 1633 if (irecv_get_bdid(client, &bdid) < 0) {
1612 break; 1634 break;