1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

RTC6705 resource cleanup.

This commit is contained in:
Dominic Clifton 2018-11-22 13:04:49 +01:00
parent 9886391934
commit 8e5c1dd7a3
11 changed files with 215 additions and 39 deletions

View file

@ -113,6 +113,7 @@
#include "pg/rx_pwm.h"
#include "pg/sdcard.h"
#include "pg/vcd.h"
#include "pg/vtx_io.h"
#include "rx/rx.h"
#include "rx/rx_spi.h"
@ -491,7 +492,7 @@ void init(void)
#endif
#ifdef USE_VTX_RTC6705
rtc6705IOInit();
bool useRTC6705 = rtc6705IOInit(vtxIOConfig());
#endif
#ifdef USE_CAMERA_CONTROL
@ -734,10 +735,7 @@ void init(void)
#endif
#ifdef USE_VTX_RTC6705
#ifdef VTX_RTC6705_OPTIONAL
if (!vtxCommonDevice()) // external VTX takes precedence when configured.
#endif
{
if (!vtxCommonDevice() && useRTC6705) { // external VTX takes precedence when configured.
vtxRTC6705Init();
}
#endif