diff options
| author | Michael Sparmann <theseven@rockbox.org> | 2011-01-02 22:28:22 +0000 |
|---|---|---|
| committer | Michael Sparmann <theseven@rockbox.org> | 2011-01-02 22:28:22 +0000 |
| commit | 7fea1369034f4c10b22365e34493d4151e793fac (patch) | |
| tree | de734cc78103dea6c873113c166e8cddd59f36d9 /firmware/common/disk.c | |
| parent | 886e97221bc6105057116a6a7303b15710c9e06f (diff) | |
| download | rockbox-7fea1369034f4c10b22365e34493d4151e793fac.zip rockbox-7fea1369034f4c10b22365e34493d4151e793fac.tar.gz rockbox-7fea1369034f4c10b22365e34493d4151e793fac.tar.bz2 rockbox-7fea1369034f4c10b22365e34493d4151e793fac.tar.xz | |
Autodetect sector size on superfloppy volumes based on the FAT32 BPB (kudos to Frank Gevaerts)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28946 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/disk.c')
| -rw-r--r-- | firmware/common/disk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index 400d21f..a23d51d 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c @@ -223,6 +223,9 @@ int disk_mount(int drive) DEBUGF("No partition found, trying to mount sector 0.\n"); if (!fat_mount(IF_MV2(volume,) IF_MD2(drive,) 0)) { +#ifdef MAX_LOG_SECTOR_SIZE + disk_sector_multiplier = fat_get_bytes_per_sector(IF_MV(volume))/SECTOR_SIZE; +#endif mounted = 1; vol_drive[volume] = drive; /* remember the drive for this volume */ } |