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

Use io tags in vtx, move vtx initialization out of OSD init

This commit is contained in:
Evgeny Sychov 2016-06-17 02:37:41 -07:00
parent 7a4d996318
commit ddf0fb5fda
10 changed files with 448 additions and 70 deletions

View file

@ -55,6 +55,7 @@
#include "drivers/transponder_ir.h"
#include "drivers/io.h"
#include "drivers/exti.h"
#include "drivers/vtx_soft_spi_rtc6705.h"
#ifdef USE_BST
#include "bus_bst.h"
@ -469,6 +470,15 @@ void init(void)
}
#endif
#ifdef USE_RTC6705
if (feature(feature(FEATURE_VTX))) {
rtc6705_soft_spi_init();
current_vtx_channel = masterConfig.vtx_channel;
rtc6705_soft_spi_set_channel(vtx_freq[current_vtx_channel]);
rtc6705_soft_spi_set_rf_power(masterConfig.vtx_power);
}
#endif
#ifdef OSD
if (feature(FEATURE_OSD)) {
osdInit();