From 4f4477872861927f7d9230248dcf43d15bc7b57c Mon Sep 17 00:00:00 2001 From: Andrew Leech Date: Thu, 23 May 2019 13:55:19 +1000 Subject: [PATCH] stm32/sdcard: Add switch break to ensure only correct SD/MMC IRQ is run. --- ports/stm32/sdcard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/stm32/sdcard.c b/ports/stm32/sdcard.c index 16e6506156..8ffba0b4c5 100644 --- a/ports/stm32/sdcard.c +++ b/ports/stm32/sdcard.c @@ -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 } }