git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3808 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
d29e6e338e
commit
685286c5c8
|
@ -128,7 +128,7 @@ static void spi_lld_serve_tx_interrupt(SPIDriver *spip, uint32_t flags) {
|
|||
/* DMA errors handling.*/
|
||||
#if defined(STM32_SPI_DMA_ERROR_HOOK)
|
||||
(void)spip;
|
||||
if ((flags & STM32_DMA_ISR_TEIF) != 0) {
|
||||
if ((flags & (STM32_DMA_ISR_TEIF | STM32_DMA_ISR_DMEIF)) != 0) {
|
||||
STM32_SPI_DMA_ERROR_HOOK(spip);
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue