From fa068bbaf71e9fa5a3fffd1946ffdc4c1ba95407 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Mon, 11 Apr 2011 19:11:39 +0000 Subject: Do not show IRMax/IWMax in the disk info debug screen for sd cards with CSD version > 1.0 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29703 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 828b881b53..a43dd0a768 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1540,6 +1540,11 @@ static int disk_callback(int btn, struct gui_synclist *lists) "Nsac: %d clk", card->nsac); simplelist_addline(SIMPLELIST_ADD_LINE, "R2W: *%d", card->r2w_factor); +#if (CONFIG_STORAGE & STORAGE_SD) + int csd_structure = card_extract_bits(card->csd, 127, 2); + if (csd_structure == 0) /* CSD version 1.0 */ +#endif + { simplelist_addline(SIMPLELIST_ADD_LINE, "IRmax: %d..%d mA", i_vmin[card_extract_bits(card->csd, 61, 3)], @@ -1548,6 +1553,7 @@ static int disk_callback(int btn, struct gui_synclist *lists) "IWmax: %d..%d mA", i_vmin[card_extract_bits(card->csd, 55, 3)], i_vmax[card_extract_bits(card->csd, 52, 3)]); + } } else if (card->initialized == 0) { -- cgit v1.2.3