Small improvement.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14950 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-10-25 14:38:11 +00:00
parent 0c592293cd
commit bf8693b950
1 changed files with 2 additions and 2 deletions

View File

@ -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);