summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-04-11 19:11:39 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-04-11 19:11:39 +0000
commitfa068bbaf71e9fa5a3fffd1946ffdc4c1ba95407 (patch)
tree23d6ad6e25a1a41ddfe3351f2e9ccfa6a05af7ca /apps
parent98d6924d50691ec7534ae5d75cee9ed143f12e8c (diff)
downloadrockbox-fa068bbaf71e9fa5a3fffd1946ffdc4c1ba95407.tar.gz
rockbox-fa068bbaf71e9fa5a3fffd1946ffdc4c1ba95407.tar.bz2
rockbox-fa068bbaf71e9fa5a3fffd1946ffdc4c1ba95407.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c6
1 files changed, 6 insertions, 0 deletions
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)
{