mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 09:32:40 -05:00
Another attempt to stop the red led dead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3498 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e1426d4cb8
commit
aa78324fde
1 changed files with 3 additions and 1 deletions
|
|
@ -226,6 +226,8 @@ int ata_read_sectors(unsigned long start,
|
|||
|
||||
if (!wait_for_start_of_transfer()) {
|
||||
ret = -4;
|
||||
if(ata_hard_reset())
|
||||
break;
|
||||
goto retry;
|
||||
}
|
||||
|
||||
|
|
@ -279,7 +281,7 @@ int ata_read_sectors(unsigned long start,
|
|||
last_disk_activity = current_tick;
|
||||
}
|
||||
|
||||
if(!wait_for_end_of_transfer()) {
|
||||
if(!ret && !wait_for_end_of_transfer()) {
|
||||
ret = -3;
|
||||
goto retry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue