From c1d57f0b0c6aa2fb63dfdd5c2f71b3b5faa55149 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sat, 3 May 2014 10:21:18 +0200 Subject: [PATCH] Issue #1052 - FW part --- radio/src/gui/menus.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/menus.cpp b/radio/src/gui/menus.cpp index 0c8e0a136..24f3b15bb 100644 --- a/radio/src/gui/menus.cpp +++ b/radio/src/gui/menus.cpp @@ -1360,7 +1360,15 @@ bool isSourceAvailable(int source) { #if defined(PCBTARANIS) if (source>=MIXSRC_FIRST_INPUT && source<=MIXSRC_LAST_INPUT) { - return ZEXIST(g_model.inputNames[source-MIXSRC_FIRST_INPUT]); + int input = source - MIXSRC_FIRST_INPUT; + for (int i=0; ichn == input) + return true; + } + return false; } #endif