Browse Source

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.
pull/8051/head
robert-hh 3 years ago
parent
commit
5d8941ec85
  1. 2
      ports/mimxrt/sdcard.c

2
ports/mimxrt/sdcard.c

@ -1013,7 +1013,7 @@ bool sdcard_detect(mimxrt_sdcard_obj_t *card) {
#if defined MICROPY_USDHC2 && USDHC2_AVAIL #if defined MICROPY_USDHC2 && USDHC2_AVAIL
if (card->usdhc_inst == USDHC2) { if (card->usdhc_inst == USDHC2) {
sdcard_usdhc2_state.inserted = detect; 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 #endif

Loading…
Cancel
Save