From 22c453e2979e78b7696090e6c341240a2ca3a968 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sat, 8 Oct 2016 14:44:25 +0200 Subject: [PATCH] Fix derp --- source/fatfs/diskio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/fatfs/diskio.c b/source/fatfs/diskio.c index 72dd084..8fa59e7 100644 --- a/source/fatfs/diskio.c +++ b/source/fatfs/diskio.c @@ -37,7 +37,7 @@ DSTATUS disk_initialize ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - DRESULT ret; + DSTATUS ret; static u32 sdmmcInitResult = 4; if(sdmmcInitResult == 4) sdmmcInitResult = sdmmc_sdcard_init(); @@ -47,11 +47,11 @@ DSTATUS disk_initialize ( if(!(sdmmcInitResult & 1)) { ctrNandInit(); - ret = RES_OK; + ret = 0; } - else ret = RES_PARERR; + else ret = STA_NOINIT; } - else ret = (!(sdmmcInitResult & 2)) ? RES_OK : RES_PARERR; + else ret = (!(sdmmcInitResult & 2)) ? 0 : STA_NOINIT; return ret; }