1
0
Fork 0
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:
CTCaer 2021-05-11 10:07:08 +03:00
parent 44db160ab1
commit d0fefabad7

View file

@ -1761,13 +1761,13 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
// Identify manufacturer.
switch (sd_storage.cid.manfid)
{
case 1:
case 0x01:
strcat(txt_buf, "Panasonic ");
break;
case 2:
case 0x02:
strcat(txt_buf, "Toshiba ");
break;
case 3:
case 0x03:
strcat(txt_buf, "SanDisk ");
break;
case 0x1B:
@ -1797,6 +1797,14 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
case 0x82:
strcat(txt_buf, "Sony ");
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",