mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #3425 from jflyper/bfdev-spi-minor-fix
SPI fix bad return value from spiDeviceByInstance
This commit is contained in:
commit
5112ffd4d1
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ SPIDevice spiDeviceByInstance(SPI_TypeDef *instance)
|
||||||
|
|
||||||
#ifdef USE_SPI_DEVICE_4
|
#ifdef USE_SPI_DEVICE_4
|
||||||
if (instance == SPI4)
|
if (instance == SPI4)
|
||||||
return SPIDEV_3;
|
return SPIDEV_4;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return SPIINVALID;
|
return SPIINVALID;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue