From 5d8941ec85ba992349576957a7ef2f65b091ba7c Mon Sep 17 00:00:00 2001 From: robert-hh Date: Thu, 25 Nov 2021 08:39:58 +0100 Subject: [PATCH] mimxrt: Fix a tiny unnoticed bug in sdcard.c. This code line will hardly ever be compiled and executed, but since it is there, it must be correct. --- ports/mimxrt/sdcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/mimxrt/sdcard.c b/ports/mimxrt/sdcard.c index 14a78e94a5..fd3c910835 100644 --- a/ports/mimxrt/sdcard.c +++ b/ports/mimxrt/sdcard.c @@ -1013,7 +1013,7 @@ bool sdcard_detect(mimxrt_sdcard_obj_t *card) { #if defined MICROPY_USDHC2 && USDHC2_AVAIL if (card->usdhc_inst == USDHC2) { sdcard_usdhc2_state.inserted = detect; - sdcard_usdhc2_state.initialized = detect ? sdcard_usdhc1_state.initialized : false; + sdcard_usdhc2_state.initialized = detect ? sdcard_usdhc2_state.initialized : false; } #endif