mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 05:15:18 +03:00
Compilation fix
This commit is contained in:
parent
e9231a2c77
commit
6b30f8253f
1 changed files with 5 additions and 1 deletions
|
@ -64,14 +64,18 @@ void menuRadioTools(event_t event)
|
|||
|
||||
SIMPLE_MENU("TOOLS", menuTabGeneral, MENU_RADIO_TOOLS, HEADER_LINE + spektrum_modules + power_modules);
|
||||
|
||||
uint8_t menu_index = 0;
|
||||
#if defined(PXX2)
|
||||
uint8_t menu_index = 0;
|
||||
|
||||
if (isModuleOptionAvailable(INTERNAL_MODULE, MODULE_OPTION_SPEKTRUM_ANALYSER))
|
||||
addRadioTool(menu_index++, "Spectrum (INT)", menuRadioSpectrumAnalyser, INTERNAL_MODULE, event);
|
||||
|
||||
if (isModuleOptionAvailable(INTERNAL_MODULE, MODULE_OPTION_POWER_METER))
|
||||
addRadioTool(menu_index++, "Power Meter (INT)", menuRadioPowerMeter, INTERNAL_MODULE, event);
|
||||
|
||||
if (isModuleOptionAvailable(EXTERNAL_MODULE, MODULE_OPTION_SPEKTRUM_ANALYSER))
|
||||
addRadioTool(menu_index++, "Spectrum (EXT)", menuRadioSpectrumAnalyser, EXTERNAL_MODULE, event);
|
||||
|
||||
if (isModuleOptionAvailable(EXTERNAL_MODULE, MODULE_OPTION_POWER_METER))
|
||||
addRadioTool(menu_index++, "Power Meter (EXT)", menuRadioPowerMeter, EXTERNAL_MODULE, event);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue