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, MENU_RADIO_SETUP,
CASE_SDCARD(MENU_RADIO_SD_MANAGER) CASE_SDCARD(MENU_RADIO_SD_MANAGER)
#if defined(LUA) || defined(PXX2)
MENU_RADIO_TOOLS, MENU_RADIO_TOOLS,
#endif
MENU_RADIO_SPECIAL_FUNCTIONS, MENU_RADIO_SPECIAL_FUNCTIONS,
MENU_RADIO_TRAINER, MENU_RADIO_TRAINER,
MENU_RADIO_HARDWARE, MENU_RADIO_HARDWARE,
@@ -76,7 +78,9 @@ void menuRadioCalibration(event_t event);
static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = { static const MenuHandlerFunc menuTabGeneral[MENU_RADIO_PAGES_COUNT] = {
menuRadioSetup, menuRadioSetup,
CASE_SDCARD(menuRadioSdManager) CASE_SDCARD(menuRadioSdManager)
#if defined(LUA) || defined(PXX2)
menuRadioTools, menuRadioTools,
#endif
menuRadioSpecialFunctions, menuRadioSpecialFunctions,
menuRadioTrainer, menuRadioTrainer,
menuRadioHardware, menuRadioHardware,
+4 -1
View File
@@ -12,13 +12,16 @@ set(GUI_SRC
../common/stdlcd/model_receiver_options.cpp ../common/stdlcd/model_receiver_options.cpp
../common/stdlcd/model_notes.cpp ../common/stdlcd/model_notes.cpp
../common/stdlcd/model_curves.cpp ../common/stdlcd/model_curves.cpp
../common/stdlcd/radio_tools.cpp
../common/stdlcd/radio_hardware.cpp ../common/stdlcd/radio_hardware.cpp
../common/stdlcd/radio_version.cpp ../common/stdlcd/radio_version.cpp
../common/stdlcd/radio_trainer.cpp ../common/stdlcd/radio_trainer.cpp
model_curve_edit.cpp model_curve_edit.cpp
) )
if(PXX2 OR LUA)
set(GUI_SRC ${GUI_SRC} ../common/stdlcd/radio_tools.cpp)
endif()
if(HELI) if(HELI)
set(GUI_SRC ${GUI_SRC} ../common/stdlcd/model_heli.cpp) set(GUI_SRC ${GUI_SRC} ../common/stdlcd/model_heli.cpp)
endif() endif()