mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 17:55:28 +03:00
Fix building without USE_VTX_*
This commit is contained in:
parent
9d73b0862e
commit
972f74bf60
3 changed files with 4 additions and 3 deletions
|
@ -652,7 +652,7 @@ void init(void)
|
|||
pitotStartCalibration();
|
||||
#endif
|
||||
|
||||
#ifdef USE_VTX_CONTROL
|
||||
#if defined(USE_VTX_COMMON) && defined(USE_VTX_CONTROL)
|
||||
vtxControlInit();
|
||||
|
||||
#if defined(USE_VTX_COMMON)
|
||||
|
@ -668,7 +668,7 @@ void init(void)
|
|||
vtxTrampInit();
|
||||
#endif
|
||||
|
||||
#endif // USE_VTX_CONTROL
|
||||
#endif // USE_VTX_COMMON && USE_VTX_CONTROL
|
||||
|
||||
// Now that everything has powered up the voltage and cell count be determined.
|
||||
if (feature(FEATURE_VBAT | FEATURE_CURRENT_METER))
|
||||
|
|
|
@ -603,7 +603,7 @@ cfTask_t cfTasks[TASK_COUNT] = {
|
|||
},
|
||||
#endif
|
||||
|
||||
#ifdef USE_VTX_CONTROL
|
||||
#if defined(USE_VTX_COMMON) && defined(USE_VTX_CONTROL)
|
||||
[TASK_VTXCTRL] = {
|
||||
.taskName = "VTXCTRL",
|
||||
.taskFunc = vtxUpdate,
|
||||
|
|
|
@ -1664,6 +1664,7 @@ groups:
|
|||
- name: PG_VTX_SETTINGS_CONFIG
|
||||
type: vtxSettingsConfig_t
|
||||
headers: ["drivers/vtx_common.h", "io/vtx.h"]
|
||||
condition: defined(VTX_COMMON) || (defined(USE_CMS) && defined(USE_VTX_SMARTAUDIO))
|
||||
members:
|
||||
- name: vtx_band
|
||||
field: band
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue