diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2009-12-16 06:56:44 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2009-12-16 06:56:44 +0000 |
commit | d24ebd16131dcf580f61947acbdc4c206e9ead0b (patch) | |
tree | a9bdb29507f8288d7273b9a5b14c83f8397b207c /firmware/target/arm/as3525/ata_sd_as3525.c | |
parent | 7d6ec7bb6f8bb8ed6605e8af2cf4b2969c984279 (diff) | |
download | rockbox-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
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 3 |
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, | |||
782 | int write_delay = 125; | 782 | int write_delay = 125; |
783 | while(write_delay--); | 783 | while(write_delay--); |
784 | } | 784 | } |
785 | #else | ||
786 | int write_delay = 125; | ||
787 | while(write_delay--); | ||
785 | #endif | 788 | #endif |
786 | } | 789 | } |
787 | else | 790 | else |