summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Halpin <jack.halpin@gmail.com>2009-12-16 06:56:44 +0000
committerJack Halpin <jack.halpin@gmail.com>2009-12-16 06:56:44 +0000
commitd24ebd16131dcf580f61947acbdc4c206e9ead0b (patch)
treea9bdb29507f8288d7273b9a5b14c83f8397b207c
parent7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279 (diff)
downloadrockbox-d24ebd16131dcf580f61947acbdc4c206e9ead0b.tar.gz
rockbox-d24ebd16131dcf580f61947acbdc4c206e9ead0b.zip
Sansa AMS: Make write delay work for non-MULTIDRIVE.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24020 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 56e666744f..07ae44a962 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -782,6 +782,9 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
int write_delay = 125;
while(write_delay--);
}
+#else
+ int write_delay = 125;
+ while(write_delay--);
#endif
}
else