mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Make sd_present() and mmc_present() look only at the actual presence of a card, not at initialisation state
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21981 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3e1b9d5fdd
commit
a7548d3bc7
5 changed files with 29 additions and 9 deletions
|
|
@ -1366,10 +1366,10 @@ bool sd_removable(IF_MV_NONVOID(int drive))
|
|||
|
||||
bool sd_present(IF_MV_NONVOID(int drive))
|
||||
{
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
(void)drive;
|
||||
#endif
|
||||
return (card.numblocks > 0 && card_detect_target());
|
||||
return card_detect_target();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_STORAGE_MULTI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue