nyx: info: use renamed sd storage member

This commit is contained in:
CTCaer 2025-01-24 15:31:15 +02:00
commit 0e01a5caa9

View file

@ -1985,7 +1985,7 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
} }
// UHS-I max power limit is 400mA, no matter what the card says. // UHS-I max power limit is 400mA, no matter what the card says.
u32 card_power_limit_nominal = sd_storage.card_power_limit > 400 ? 400 : sd_storage.card_power_limit; u32 max_power_nominal = sd_storage.max_power > 400 ? 400 : sd_storage.max_power;
s_printf(txt_buf + strlen(txt_buf), "(%02X)\n%c%c%c%c%c\n%c%c (%04X)\n%X\n%X\n%08x\n%02d/%04d\n\n%d mW (%d mA)\n", s_printf(txt_buf + strlen(txt_buf), "(%02X)\n%c%c%c%c%c\n%c%c (%04X)\n%X\n%X\n%08x\n%02d/%04d\n\n%d mW (%d mA)\n",
sd_storage.cid.manfid, sd_storage.cid.manfid,
@ -1994,7 +1994,7 @@ static lv_res_t _create_window_sdcard_info_status(lv_obj_t *btn)
(sd_storage.cid.oemid >> 8) & 0xFF, sd_storage.cid.oemid & 0xFF, sd_storage.cid.oemid, (sd_storage.cid.oemid >> 8) & 0xFF, sd_storage.cid.oemid & 0xFF, sd_storage.cid.oemid,
sd_storage.cid.hwrev, sd_storage.cid.fwrev, sd_storage.cid.serial, sd_storage.cid.hwrev, sd_storage.cid.fwrev, sd_storage.cid.serial,
sd_storage.cid.month, sd_storage.cid.year, sd_storage.cid.month, sd_storage.cid.year,
card_power_limit_nominal * 3600 / 1000, sd_storage.card_power_limit); max_power_nominal * 3600 / 1000, sd_storage.max_power);
switch (nyx_str->info.sd_init) switch (nyx_str->info.sd_init)
{ {