From: Gabriel Somlo Date: Sat, 4 Jul 2020 19:24:05 +0000 (-0400) Subject: liblitesdcard/sdcard: return error code outside '#ifdef SDCARD_DEBUG' X-Git-Tag: 24jan2021_ls180~108^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c52731d1f1420cb1fe680a576a5112f5ff1c1e7b;p=litex.git liblitesdcard/sdcard: return error code outside '#ifdef SDCARD_DEBUG' --- 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; }