From e8f84c96a713fad4ba727e0f0d3237375aad5842 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 25 Jun 2020 13:48:49 +0200 Subject: [PATCH] liblitesdcard/sdcard: decode cid only when SDCARD_DEBUG is set. --- litex/soc/software/liblitesdcard/sdcard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index b3281959..039c5f8b 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -440,8 +440,9 @@ int sdcard_init(void) { /* send identification */ sdcard_all_send_cid(); +#ifdef SDCARD_DEBUG sdcard_decode_cid(); - +#endif /* set relative card address */ sdcard_set_relative_address(); rca = (sdcard_response[3] >> 16) & 0xffff; -- 2.30.2