From a7548d3bc7b4cb91553a59a06490290869270437 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 20 Jul 2009 13:47:21 +0000 Subject: 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 --- firmware/target/arm/as3525/ata_sd_as3525.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c') diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index bca52a09f1..995bf932ca 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -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 -- cgit v1.2.3