From 4149bab2ca98e041d09d9908b04e634b84257f2c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 22 Feb 2013 10:34:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5297 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/fatfs_bindings/fatfs_diskio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os/various') diff --git a/os/various/fatfs_bindings/fatfs_diskio.c b/os/various/fatfs_bindings/fatfs_diskio.c index 1064a6875..c724fa5f9 100644 --- a/os/various/fatfs_bindings/fatfs_diskio.c +++ b/os/various/fatfs_bindings/fatfs_diskio.c @@ -125,7 +125,7 @@ DRESULT disk_read ( while (count > 0) { if (mmcSequentialRead(&MMCD1, buff)) return RES_ERROR; - buff += MMC_SECTOR_SIZE; + buff += MMCSD_BLOCK_SIZE; count--; } if (mmcStopSequentialRead(&MMCD1)) @@ -168,7 +168,7 @@ DRESULT disk_write ( while (count > 0) { if (mmcSequentialWrite(&MMCD1, buff)) return RES_ERROR; - buff += MMC_SECTOR_SIZE; + buff += MMCSD_BLOCK_SIZE; count--; } if (mmcStopSequentialWrite(&MMCD1)) @@ -205,7 +205,7 @@ DRESULT disk_ioctl ( case CTRL_SYNC: return RES_OK; case GET_SECTOR_SIZE: - *((WORD *)buff) = MMC_SECTOR_SIZE; + *((WORD *)buff) = MMCSD_BLOCK_SIZE; return RES_OK; #if _USE_ERASE case CTRL_ERASE_SECTOR: -- cgit v1.2.3