mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-26 23:36:37 -04:00
Sansa AMS: Use small write delay for all non-HS cards including the internal SD to prevent data corruption.
Making this delay apply to all non-HS SD cards seems to fix some data corruption issues that came up with the switch to 4-bit widebus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24019 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b283967ebd
commit
7d6ec7bb6f
1 changed files with 1 additions and 1 deletions
|
|
@ -777,7 +777,7 @@ static int sd_transfer_sectors(IF_MD2(int drive,) unsigned long start,
|
|||
DMAC_FLOWCTRL_PERI_MEM_TO_PERI, true, false, 0, DMA_S8, NULL);
|
||||
#if defined(HAVE_MULTIDRIVE)
|
||||
/*Small delay for writes prevents data crc failures at lower freqs*/
|
||||
if((drive == SD_SLOT_AS3525) && !hs_card)
|
||||
if(!hs_card)
|
||||
{
|
||||
int write_delay = 125;
|
||||
while(write_delay--);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue