forked from len0rd/rockbox
Fix USB storage driver. ata_get_info was no longer filling-in num_sectors after recent ATA changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28962 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a31b3701f8
commit
18f4889d63
1 changed files with 1 additions and 0 deletions
|
|
@ -1456,6 +1456,7 @@ void ata_get_info(IF_MD2(int drive,)struct storage_info *info)
|
|||
#endif
|
||||
int i;
|
||||
info->sector_size = SECTOR_SIZE;
|
||||
info->num_sectors = total_sectors;
|
||||
|
||||
src = (unsigned short*)&identify_info[27];
|
||||
dest = (unsigned short*)vendor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue