Use USE_FLASH_M25P16 to detect flash chip usage

This commit is contained in:
jflyper 2017-07-09 16:23:16 +09:00
parent b8b1c89046
commit aff4e0568b
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ void spiPreInit(void)
#ifdef RTC6705_CS_PIN // XXX VTX_RTC6705? Should use USE_ format.
spiPreInitCs(IO_TAG(RTC6705_CS_PIN));
#endif
#ifdef M25P16_CS_PIN // XXX Should use USE_ format.
#ifdef USE_FLASH_M25P16
spiPreInitCs(IO_TAG(M25P16_CS_PIN));
#endif
#if defined(USE_RX_SPI) && !defined(USE_RX_SOFTSPI)