summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/ata_sd_as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c9
1 files changed, 8 insertions, 1 deletions
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