From 9a1ab2286ded9a8d83f4fef3b2eaa5e857dbded0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 Dec 2021 00:03:08 +1100 Subject: [PATCH] stm32/main: Call sdcard_init when only MICROPY_HW_ENABLE_MMCARD enabled. Otherwise, if MMCARD is enabled and not SDCARD, then the GPIO will not be configured for SDIO. Signed-off-by: Damien George --- ports/stm32/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 974602cb05..7a7f80467b 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -419,7 +419,7 @@ void stm32_main(uint32_t reset_mode) { #if MICROPY_PY_PYB_LEGACY && MICROPY_HW_ENABLE_HW_I2C i2c_init0(); #endif - #if MICROPY_HW_ENABLE_SDCARD + #if MICROPY_HW_ENABLE_SDCARD || MICROPY_HW_ENABLE_MMCARD sdcard_init(); #endif #if MICROPY_HW_ENABLE_STORAGE