From bf8693b95099d7669b2cc096d03eb742128a707c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 25 Oct 2021 14:38:11 +0000 Subject: [PATCH] Small improvement. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14950 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/SPIv2/hal_spi_v2_lld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_v2_lld.c b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_v2_lld.c index f9f7c3f63..030a3115c 100644 --- a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_v2_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_v2_lld.c @@ -196,8 +196,8 @@ static void spi_lld_serve_tx_interrupt(SPIDriver *spip, uint32_t flags) { STM32_SPI_DMA_ERROR_HOOK(spip); #endif - /* Aborting the transfer, best effort.*/ - (void) spi_lld_stop_transfer(spip, NULL); + /* Aborting the transfer.*/ + (void) spi_lld_stop_cleanly(spip); /* Reporting the failure.*/ __spi_isr_error_code(spip, HAL_RET_HW_FAILURE);