From ecd27f7eaa36c1a452e51c913cd87370caaa3235 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Mon, 28 Aug 2017 02:54:20 +0200 Subject: [PATCH] Fix diskio indentation --- source/fatfs/diskio.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/fatfs/diskio.c b/source/fatfs/diskio.c index 73d0c85..1cdb360 100644 --- a/source/fatfs/diskio.c +++ b/source/fatfs/diskio.c @@ -41,8 +41,8 @@ DSTATUS disk_initialize ( if(sdmmcInitResult == 4) sdmmcInitResult = sdmmc_sdcard_init(); - return ((pdrv == SDCARD && !(sdmmcInitResult & 2)) || - (pdrv == CTRNAND && !(sdmmcInitResult & 1) && !ctrNandInit())) ? 0 : STA_NOINIT; + return ((pdrv == SDCARD && !(sdmmcInitResult & 2)) || + (pdrv == CTRNAND && !(sdmmcInitResult & 1) && !ctrNandInit())) ? 0 : STA_NOINIT; } @@ -58,8 +58,8 @@ DRESULT disk_read ( UINT count /* Number of sectors to read */ ) { - return ((pdrv == SDCARD && !sdmmc_sdcard_readsectors(sector, count, buff)) || - (pdrv == CTRNAND && !ctrNandRead(sector, count, buff))) ? RES_OK : RES_PARERR; + return ((pdrv == SDCARD && !sdmmc_sdcard_readsectors(sector, count, buff)) || + (pdrv == CTRNAND && !ctrNandRead(sector, count, buff))) ? RES_OK : RES_PARERR; } @@ -76,8 +76,8 @@ DRESULT disk_write ( UINT count /* Number of sectors to write */ ) { - return ((pdrv == SDCARD && (*(vu16 *)(SDMMC_BASE + REG_SDSTATUS0) & TMIO_STAT0_WRPROTECT) != 0 && !sdmmc_sdcard_writesectors(sector, count, buff)) || - (pdrv == CTRNAND && !ctrNandWrite(sector, count, buff))) ? RES_OK : RES_PARERR; + return ((pdrv == SDCARD && (*(vu16 *)(SDMMC_BASE + REG_SDSTATUS0) & TMIO_STAT0_WRPROTECT) != 0 && !sdmmc_sdcard_writesectors(sector, count, buff)) || + (pdrv == CTRNAND && !ctrNandWrite(sector, count, buff))) ? RES_OK : RES_PARERR; } #endif @@ -96,6 +96,6 @@ DRESULT disk_ioctl ( void *buff /* Buffer to send/receive control data */ ) { - return cmd == CTRL_SYNC ? RES_OK : RES_PARERR; + return cmd == CTRL_SYNC ? RES_OK : RES_PARERR; } #endif