From c52731d1f1420cb1fe680a576a5112f5ff1c1e7b Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Sat, 4 Jul 2020 15:24:05 -0400 Subject: [PATCH] liblitesdcard/sdcard: return error code outside '#ifdef SDCARD_DEBUG' --- litex/soc/software/liblitesdcard/sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index 222e78d1..ac066eb1 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -55,8 +55,8 @@ int sdcard_wait_cmd_done(void) { else if (cmdevt & 0x8) { #ifdef SDCARD_DEBUG printf("cmdevt: SD_CRCERROR\n"); - return SD_CRCERROR; #endif + return SD_CRCERROR; } return SD_OK; } -- 2.30.2