summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-06 07:21:08 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-06 07:21:08 +0000
commit55398e934ce958821a52125d4e59fbc2724cd4c1 (patch)
tree0551248b3e29107f7ddccbc73666e5233a9b8f01
parent20a39f485a977f9983f315322a9d0252f7a5f4e2 (diff)
downloadrockbox-55398e934ce958821a52125d4e59fbc2724cd4c1.tar.gz
rockbox-55398e934ce958821a52125d4e59fbc2724cd4c1.zip
c200: Make microSD cards finally work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15493 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/sandisk/ata-c200_e200.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/sandisk/ata-c200_e200.c b/firmware/target/arm/sandisk/ata-c200_e200.c
index f9c9f6fb3a..d8f9cb9050 100644
--- a/firmware/target/arm/sandisk/ata-c200_e200.c
+++ b/firmware/target/arm/sandisk/ata-c200_e200.c
@@ -806,7 +806,7 @@ int ata_read_sectors(IF_MV2(int drive,) unsigned long start, int incount,
ata_led(true);
ata_read_retry:
- if (drive != 0 && (GPIOA_INPUT_VAL & 0x80) != 0)
+ if (drive != 0 && !card_detect_target())
{
/* no external sd-card inserted */
ret = -EC_NOCARD;
@@ -921,7 +921,7 @@ int ata_write_sectors(IF_MV2(int drive,) unsigned long start, int count,
ata_led(true);
ata_write_retry:
- if (drive != 0 && (GPIOA_INPUT_VAL & 0x80) != 0)
+ if (drive != 0 && !card_detect_target())
{
/* no external sd-card inserted */
ret = -EC_NOCARD;