1
0
Fork 0
forked from len0rd/rockbox

Fixed calculation of MMC sector count. Display sector count instead of (rough) size info for debugging.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5937 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-02-12 23:09:00 +00:00
parent c5d00d82b0
commit b3017c8701
2 changed files with 3 additions and 4 deletions

View file

@ -1421,8 +1421,7 @@ bool dbg_mmc_info(void)
(int) mmc_extract_bits(card->cid, 0, 8),
(int) mmc_extract_bits(card->cid, 8, 16));
lcd_puts(0, 4, pbuf);
snprintf(pbuf, sizeof(pbuf), "Size: %d MB",
card->numsectors * SECTOR_SIZE / (1024*1024));
snprintf(pbuf, sizeof(pbuf), "Sectors: %08x", card->numsectors);
lcd_puts(0, 5, pbuf);
}
else /* Technical details */