1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

CF/BF - Enable RTC6705 power control.

Currently there is duplicate code between the two RTC6705 drivers, we
can refactor it via another commit to reduce this new, and existing
duplication.
This commit is contained in:
Hydra 2017-08-19 17:37:40 +01:00 committed by Dominic Clifton
parent 177472b4fc
commit 4901b947e3
2 changed files with 31 additions and 7 deletions

View file

@ -238,7 +238,7 @@ void spiPreInit(void)
#ifdef USE_MAG_SPI_AK8963
spiPreInitCs(IO_TAG(AK8963_CS_PIN));
#endif
#if defined(USE_VTX_RTC6705)
#if defined(RTC6705_CS_PIN) && !defined(USE_VTX_RTC6705_SOFTSPI) // RTC6705 soft SPI initialisation handled elsewhere.
spiPreInitCs(IO_TAG(RTC6705_CS_PIN));
#endif
#ifdef USE_FLASH_M25P16