summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ata-sd-pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ata-sd-pp.c')
-rw-r--r--firmware/target/arm/ata-sd-pp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/arm/ata-sd-pp.c b/firmware/target/arm/ata-sd-pp.c
index f963e0ac48..78a2a4f3a4 100644
--- a/firmware/target/arm/ata-sd-pp.c
+++ b/firmware/target/arm/ata-sd-pp.c
@@ -1345,7 +1345,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