Fixed some conditions.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14969 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-10-29 08:03:57 +00:00
parent d7e5943256
commit 5fae5da19c
1 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ msg_t spi_lld_start(SPIDriver *spip) {
#endif
#if STM32_SPI_USE_SPI2
if (&SPID2 == spip) {
else if (&SPID2 == spip) {
msg = spi_lld_get_dma(spip,
STM32_SPI_SPI2_RX_DMA_STREAM,
STM32_SPI_SPI2_TX_DMA_STREAM,
@ -532,7 +532,7 @@ msg_t spi_lld_start(SPIDriver *spip) {
#endif
#if STM32_SPI_USE_SPI6
if (&SPID6 == spip) {
else if (&SPID6 == spip) {
msg = spi_lld_get_dma(spip,
STM32_SPI_SPI6_RX_DMA_STREAM,
STM32_SPI_SPI6_TX_DMA_STREAM,