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.
This commit is contained in:
robert-hh 2021-11-25 08:39:58 +01:00
parent ea09dccfea
commit 5d8941ec85
1 changed files with 1 additions and 1 deletions

View File

@ -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