diff --git a/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c b/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c index 2785c4f44..544850fa0 100644 --- a/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c +++ b/os/hal/ports/STM32/LLD/SPIv1/hal_spi_v2_lld.c @@ -160,7 +160,6 @@ static msg_t spi_lld_stop_abort(SPIDriver *spip) { /* Waiting for current frame completion then stop SPI.*/ while ((spip->spi->SR & SPI_SR_BSY) != 0U) { } - spip->spi->CR1 &= ~SPI_CR1_SPE; /* Now it is idle, stopping RX DMA channel.*/ dmaStreamDisable(spip->dmarx);