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. // 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",