diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-04 17:17:38 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-04 17:17:38 +0000 |
| commit | 18f4889d6382f0ff63451624166e1944bbe98131 (patch) | |
| tree | 28480f436b41d19443098ee9b30c20ac63982bde | |
| parent | a31b3701f8b69e8370219fac417248f254814446 (diff) | |
| download | rockbox-18f4889d6382f0ff63451624166e1944bbe98131.zip rockbox-18f4889d6382f0ff63451624166e1944bbe98131.tar.gz rockbox-18f4889d6382f0ff63451624166e1944bbe98131.tar.bz2 rockbox-18f4889d6382f0ff63451624166e1944bbe98131.tar.xz | |
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
| -rw-r--r-- | firmware/drivers/ata.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index 5047447..77cd89f 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -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; |