diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index ba3a81e9194..d2569cd28f3 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -280,7 +280,13 @@ bool isSourceAvailable(int source) bool isSourceAvailableInGlobalFunctions(int source) { - if (source >= MIXSRC_FIRST_TELEM && source <= MIXSRC_LAST_TELEM) { + if ((source >= MIXSRC_FIRST_INPUT && source <= MIXSRC_LAST_INPUT) || + (source >= MIXSRC_FIRST_HELI && source <= MIXSRC_LAST_HELI) || + (source >= MIXSRC_FIRST_TRAINER && source <= MIXSRC_LAST_TRAINER) || + (source >= MIXSRC_FIRST_LOGICAL_SWITCH && source <= MIXSRC_LAST_LOGICAL_SWITCH) || + (source >= MIXSRC_FIRST_GVAR && source <= MIXSRC_LAST_GVAR) || + (source >= MIXSRC_FIRST_TIMER && source <= MIXSRC_LAST_TIMER) || + (source >= MIXSRC_FIRST_TELEM && source <= MIXSRC_LAST_TELEM)) { return false; } return isSourceAvailable(source);