summaryrefslogtreecommitdiff
path: root/firmware/common/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/disk.c')
-rw-r--r--firmware/common/disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index c58ae3ee86..ebf8103aa0 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -152,10 +152,10 @@ int disk_mount(int drive)
152 real problem. */ 152 real problem. */
153 for (i=0; volume != -1 && i<4; i++) 153 for (i=0; volume != -1 && i<4; i++)
154 { 154 {
155#ifdef MAX_SECTOR_SIZE 155#ifdef MAX_LOG_SECTOR_SIZE
156 int j; 156 int j;
157 157
158 for (j = 1; j <= (MAX_SECTOR_SIZE/SECTOR_SIZE); j <<= 1) 158 for (j = 1; j <= (MAX_LOG_SECTOR_SIZE/SECTOR_SIZE); j <<= 1)
159 { 159 {
160 if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start * j)) 160 if (!fat_mount(IF_MV2(volume,) IF_MV2(drive,) pinfo[i].start * j))
161 { 161 {