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

fixed pre-processor directives (continued)

This commit is contained in:
Raphael Coeffic 2017-01-15 23:18:38 +01:00
parent 99cff4a875
commit af72b761b5
4 changed files with 10 additions and 1 deletions

View file

@ -97,12 +97,14 @@ static OSD_Entry menuFeaturesEntries[] =
#if defined(VTX) || defined(USE_RTC6705)
{"VTX", OME_Submenu, cmsMenuChange, &cmsx_menuVtx, 0},
#endif // VTX || USE_RTC6705
#if defined(VTX_CONTROL)
#if defined(VTX_SMARTAUDIO)
{"VTX SA", OME_Submenu, cmsMenuChange, &cmsx_menuVtxSmartAudio, 0},
#endif
#if defined(VTX_TRAMP)
{"VTX TR", OME_Submenu, cmsMenuChange, &cmsx_menuVtxTramp, 0},
#endif
#endif // VTX_CONTROL
#ifdef LED_STRIP
{"LED STRIP", OME_Submenu, cmsMenuChange, &cmsx_menuLedstrip, 0},
#endif // LED_STRIP

View file

@ -524,6 +524,8 @@ void init(void)
baroSetCalibrationCycles(CALIBRATING_BARO_CYCLES);
#endif
#ifdef VTX_CONTROL
#ifdef VTX_SMARTAUDIO
smartAudioInit();
#endif
@ -532,6 +534,8 @@ void init(void)
trampInit();
#endif
#endif // VTX_CONTROL
// start all timers
// TODO - not implemented yet
timerStart();

View file

@ -1,5 +1,7 @@
#pragma once
#if defined(VTX_TRAMP) && defined(VTX_CONTROL)
bool trampInit();
void trampProcess(uint32_t currentTimeUs);
@ -8,3 +10,5 @@ void trampProcess(uint32_t currentTimeUs);
#include "cms/cms_types.h"
extern CMS_Menu cmsx_menuVtxTramp;
#endif
#endif

View file

@ -22,5 +22,4 @@
// Targets with built-in vtx do not need external vtx
#if defined(VTX) || defined(USE_RTC6705)
# undef VTX_CONTROL
# undef VTX_SMARTAUDIO
#endif