No tools on radio which have no ACCESS and no LUA

This commit is contained in:
Bertrand Songis
2019-07-05 17:33:36 +02:00
parent 50c23fa394
commit 841305c9ba
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -52,7 +52,9 @@ enum MenuRadioIndexes
{
MENU_RADIO_SETUP,
CASE_SDCARD(MENU_RADIO_SD_MANAGER)
#if defined(LUA) || defined(PXX2)
MENU_RADIO_TOOLS,
#endif
MENU_RADIO_SPECIAL_FUNCTIONS,
MENU_RADIO_TRAINER,
MENU_RADIO_HARDWARE,
@@ -76,7 +78,9 @@ void menuRadioCalibration(event_t event);
static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = {
menuRadioSetup,
CASE_SDCARD(menuRadioSdManager)
#if defined(LUA) || defined(PXX2)
menuRadioTools,
#endif
menuRadioSpecialFunctions,
menuRadioTrainer,
menuRadioHardware,
+4 -1
View File
@@ -12,13 +12,16 @@ set(GUI_SRC
../common/stdlcd/model_receiver_options.cpp
../common/stdlcd/model_notes.cpp
../common/stdlcd/model_curves.cpp
../common/stdlcd/radio_tools.cpp
../common/stdlcd/radio_hardware.cpp
../common/stdlcd/radio_version.cpp
../common/stdlcd/radio_trainer.cpp
model_curve_edit.cpp
)
if(PXX2 OR LUA)
set(GUI_SRC ${GUI_SRC} ../common/stdlcd/radio_tools.cpp)
endif()
if(HELI)
set(GUI_SRC ${GUI_SRC} ../common/stdlcd/model_heli.cpp)
endif()