Skip to content
Snippets Groups Projects
Commit 4f447787 authored by Andrew Leech's avatar Andrew Leech Committed by Damien George
Browse files

stm32/sdcard: Add switch break to ensure only correct SD/MMC IRQ is run.

parent 6cf4e967
No related branches found
No related tags found
No related merge requests found
......@@ -370,10 +370,12 @@ STATIC void sdmmc_irq_handler(void) {
#if MICROPY_HW_ENABLE_SDCARD
case PYB_SDMMC_FLAG_ACTIVE | PYB_SDMMC_FLAG_SD:
HAL_SD_IRQHandler(&sdmmc_handle.sd);
break;
#endif
#if MICROPY_HW_ENABLE_MMCARD
case PYB_SDMMC_FLAG_ACTIVE | PYB_SDMMC_FLAG_MMC:
HAL_MMC_IRQHandler(&sdmmc_handle.mmc);
break;
#endif
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment