Fix initialisation of SPI2
This commit is contained in:
parent
af68517dda
commit
a60cdf157a
|
@ -237,7 +237,7 @@ bool spiInit(SPI_TypeDef *instance)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_SPI_DEVICE_2
|
#ifdef USE_SPI_DEVICE_2
|
||||||
if (instance == SPI1) {
|
if (instance == SPI2) {
|
||||||
initSpi2();
|
initSpi2();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue