diff options
author | robert-hh <robert@hammelrath.com> | 2021-11-25 08:39:58 +0100 |
---|---|---|
committer | robert-hh <robert@hammelrath.com> | 2021-12-14 08:07:52 +0100 |
commit | 5d8941ec85ba992349576957a7ef2f65b091ba7c (patch) | |
tree | 7ddd497685c63292a1c660a13d2a45c768b6a403 | |
parent | ea09dccfea0503534688dd790c40d33c5399e7d8 (diff) | |
download | micropython-5d8941ec85ba992349576957a7ef2f65b091ba7c.tar.gz micropython-5d8941ec85ba992349576957a7ef2f65b091ba7c.zip |
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.
-rw-r--r-- | ports/mimxrt/sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |