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

This commit is contained in:
Andrew Leech 2019-05-23 13:55:19 +10:00 committed by Damien George
parent 6cf4e9675b
commit 4f44778728
1 changed files with 2 additions and 0 deletions

View File

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