From 0f1c4bdcf0c72e450bae8068d61a7c2d4328ee95 Mon Sep 17 00:00:00 2001 From: Shino Amakusa Date: Tue, 13 Oct 2015 21:33:57 +0200 Subject: [PATCH] Fixed CRC Failure detection --- FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c b/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c index 4a61400..8936077 100644 --- a/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c +++ b/FATFS/shimatta_sdio_driver/shimatta_sdio-driver.c @@ -137,7 +137,8 @@ int SDIO_getResp(uint8_t expectedCMD, uint8_t typeOfAns, uint32_t *responseBuffe if(expectedCMD == 41) { //This command does not have a CRC...Doushite.... break;//Hopefully the response is correct. Even without CRC.... - } + } else + return CCRCFAIL; }