mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 11:42:09 +00:00
nyx: return unknown if SD vendor is not known
TODO: Investigate which OEM/ODM makes the new Lexar SD cards.
This commit is contained in:
parent
44db160ab1
commit
d0fefabad7
1 changed files with 11 additions and 3 deletions
|
@ -1761,13 +1761,13 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
|
||||||
// Identify manufacturer.
|
// Identify manufacturer.
|
||||||
switch (sd_storage.cid.manfid)
|
switch (sd_storage.cid.manfid)
|
||||||
{
|
{
|
||||||
case 1:
|
case 0x01:
|
||||||
strcat(txt_buf, "Panasonic ");
|
strcat(txt_buf, "Panasonic ");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 0x02:
|
||||||
strcat(txt_buf, "Toshiba ");
|
strcat(txt_buf, "Toshiba ");
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 0x03:
|
||||||
strcat(txt_buf, "SanDisk ");
|
strcat(txt_buf, "SanDisk ");
|
||||||
break;
|
break;
|
||||||
case 0x1B:
|
case 0x1B:
|
||||||
|
@ -1797,6 +1797,14 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
|
||||||
case 0x82:
|
case 0x82:
|
||||||
strcat(txt_buf, "Sony ");
|
strcat(txt_buf, "Sony ");
|
||||||
break;
|
break;
|
||||||
|
//TODO: Investigate which OEM/ODM makes these.
|
||||||
|
// case 0x9C: // LX512 SO
|
||||||
|
// case 0xAD: // LX512 LS
|
||||||
|
// strcat(txt_buf, "Lexar ");
|
||||||
|
// break;
|
||||||
|
default:
|
||||||
|
strcat(txt_buf, "Unknown ");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
s_printf(txt_buf + strlen(txt_buf), "(%02X)\n%c%c%c%c%c\n%c%c\n%X\n%X\n%08x\n%02d/%04d\n\n",
|
s_printf(txt_buf + strlen(txt_buf), "(%02X)\n%c%c%c%c%c\n%c%c\n%X\n%X\n%08x\n%02d/%04d\n\n",
|
||||||
|
|
Loading…
Reference in a new issue