aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-FATFS-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-FATFS-GCC/main.c')
-rw-r--r--demos/ARM7-LPC214x-FATFS-GCC/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ARM7-LPC214x-FATFS-GCC/main.c b/demos/ARM7-LPC214x-FATFS-GCC/main.c
index 51f0da172..7b9edc9b6 100644
--- a/demos/ARM7-LPC214x-FATFS-GCC/main.c
+++ b/demos/ARM7-LPC214x-FATFS-GCC/main.c
@@ -242,7 +242,7 @@ static void TimerHandler(eventid_t id) {
chprintf((BaseSequentialStream *)&SD1,
"FS: %lu free clusters, %lu sectors per cluster, %lu bytes free\r\n",
clusters, (uint32_t)MMC_FS.csize,
- clusters * (uint32_t)MMC_FS.csize * (uint32_t)MMC_SECTOR_SIZE);
+ clusters * (uint32_t)MMC_FS.csize * (uint32_t)MMCSD_BLOCK_SIZE);
fbuff[0] = 0;
scan_files((BaseSequentialStream *)&SD1, (char *)fbuff);
}