commit | ee9b79f5f13ef74697a517c1059ba8018e225835 | [log] [tgz] |
---|---|---|
author | Ali Labbene <ali.labbene@st.com> | Fri May 13 17:00:07 2022 +0100 |
committer | Ali Labbene <ali.labbene@st.com> | Fri May 13 17:00:07 2022 +0100 |
tree | ec5b5294b96e4baf79f80c774a54db7b0c074097 | |
parent | e334a5071b6389fc986fab82bdebabcc1cb7d170 [diff] |
[HAL][DMA] Manage the case of an invalid callback ID passed to the HAL_DMA_RegisterCallback() function
diff --git a/Src/stm32f2xx_hal_dma.c b/Src/stm32f2xx_hal_dma.c index 86723ec..6f086e3 100644 --- a/Src/stm32f2xx_hal_dma.c +++ b/Src/stm32f2xx_hal_dma.c
@@ -1005,6 +1005,8 @@ break; default: + /* Return error status */ + status = HAL_ERROR; break; } }