From 50047dffaac12b6787be2ffc1eb88dc1b6b78fbe Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 12 May 2018 10:52:04 +0200 Subject: [PATCH] [stage1] unstub multiple sector-r/w code --- fusee/fusee-primary/src/lib/fatfs/diskio.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/fusee/fusee-primary/src/lib/fatfs/diskio.c b/fusee/fusee-primary/src/lib/fatfs/diskio.c index 6749da4df..450a234f4 100644 --- a/fusee/fusee-primary/src/lib/fatfs/diskio.c +++ b/fusee/fusee-primary/src/lib/fatfs/diskio.c @@ -83,21 +83,12 @@ DRESULT disk_read ( UINT count /* Number of sectors to read */ ) { -#if 1 - for (unsigned int i = 0; i < count; i++) { - if (sdmmc_read(&g_sd_mmc, buff + 0x200 * i, sector + i, 1) != 0) { - return RES_ERROR; - } - } - return RES_OK; -#else switch (pdrv) { case 0: return sdmmc_read(&g_sd_mmc, buff, sector, count) == 0 ? RES_OK : RES_ERROR; default: return RES_PARERR; } -#endif } @@ -113,16 +104,12 @@ DRESULT disk_write ( UINT count /* Number of sectors to write */ ) { -#if 0 switch (pdrv) { case 0: return sdmmc_write(&g_sd_mmc, buff, sector, count) == 0 ? RES_OK : RES_ERROR; default: return RES_PARERR; } -#else - return 0; -#endif }