1
0
Fork 0
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:
Michael Sevakis 2011-01-04 17:17:38 +00:00
parent a31b3701f8
commit 18f4889d63

View file

@ -1456,6 +1456,7 @@ void ata_get_info(IF_MD2(int drive,)struct storage_info *info)
#endif #endif
int i; int i;
info->sector_size = SECTOR_SIZE; info->sector_size = SECTOR_SIZE;
info->num_sectors = total_sectors;
src = (unsigned short*)&identify_info[27]; src = (unsigned short*)&identify_info[27];
dest = (unsigned short*)vendor; dest = (unsigned short*)vendor;