Use USE_FLASH_M25P16 to detect flash chip usage
This commit is contained in:
parent
b8b1c89046
commit
aff4e0568b
|
@ -229,7 +229,7 @@ void spiPreInit(void)
|
||||||
#ifdef RTC6705_CS_PIN // XXX VTX_RTC6705? Should use USE_ format.
|
#ifdef RTC6705_CS_PIN // XXX VTX_RTC6705? Should use USE_ format.
|
||||||
spiPreInitCs(IO_TAG(RTC6705_CS_PIN));
|
spiPreInitCs(IO_TAG(RTC6705_CS_PIN));
|
||||||
#endif
|
#endif
|
||||||
#ifdef M25P16_CS_PIN // XXX Should use USE_ format.
|
#ifdef USE_FLASH_M25P16
|
||||||
spiPreInitCs(IO_TAG(M25P16_CS_PIN));
|
spiPreInitCs(IO_TAG(M25P16_CS_PIN));
|
||||||
#endif
|
#endif
|
||||||
#if defined(USE_RX_SPI) && !defined(USE_RX_SOFTSPI)
|
#if defined(USE_RX_SPI) && !defined(USE_RX_SOFTSPI)
|
||||||
|
|
Loading…
Reference in New Issue