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:
Frank Gevaerts 2009-07-20 13:47:21 +00:00
parent 3e1b9d5fdd
commit a7548d3bc7
5 changed files with 29 additions and 9 deletions

View file

@ -522,7 +522,14 @@ bool sd_present(IF_MD_NONVOID(int drive))
#ifndef HAVE_MULTIDRIVE
const int drive=0;
#endif
return (card_info[drive].initialized && card_info[drive].numblocks > 0);
if(drive==0)
{
return true;
}
else
{
return card_detect_target();
}
}
#endif