mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Merge pull request #4564 from jflyper/bfdev-max7456-spiclock-woes2
Use max7456SpiClock in ENABLE_MAX7456 macro
This commit is contained in:
commit
ab13abf985
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@
|
|||
// On shared SPI buss we want to change clock for OSD chip and restore for other devices.
|
||||
|
||||
#ifdef MAX7456_SPI_CLK
|
||||
#define ENABLE_MAX7456 {spiSetDivisor(MAX7456_SPI_INSTANCE, MAX7456_SPI_CLK);IOLo(max7456CsPin);}
|
||||
#define ENABLE_MAX7456 {spiSetDivisor(MAX7456_SPI_INSTANCE, max7456SpiClock);IOLo(max7456CsPin);}
|
||||
#else
|
||||
#define ENABLE_MAX7456 IOLo(max7456CsPin)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue