From a60cdf157aeb3fc8dead3340c91800eabccae80f Mon Sep 17 00:00:00 2001 From: Nicholas Sherlock Date: Sat, 28 Feb 2015 00:56:28 +1300 Subject: [PATCH] Fix initialisation of SPI2 --- src/main/drivers/bus_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/bus_spi.c b/src/main/drivers/bus_spi.c index e381fc64e..f2b0cb244 100644 --- a/src/main/drivers/bus_spi.c +++ b/src/main/drivers/bus_spi.c @@ -237,7 +237,7 @@ bool spiInit(SPI_TypeDef *instance) } #endif #ifdef USE_SPI_DEVICE_2 - if (instance == SPI1) { + if (instance == SPI2) { initSpi2(); return true; }