From e7071e26ea5175f6402c0de94d56e40210098f20 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 9 Mar 2015 21:09:27 +0100 Subject: [PATCH] [Taranis] Disabled Pots skipped in ExpoOne menu --- radio/src/gui/Taranis/helpers.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/radio/src/gui/Taranis/helpers.cpp b/radio/src/gui/Taranis/helpers.cpp index 0fe9e9f84..fbd3767cf 100755 --- a/radio/src/gui/Taranis/helpers.cpp +++ b/radio/src/gui/Taranis/helpers.cpp @@ -149,10 +149,9 @@ bool isSourceAvailableInCustomSwitches(int source) bool isInputSourceAvailable(int source) { -#if !defined(REVPLUS) - if (source == MIXSRC_POT3) - return false; -#endif + if (source>=MIXSRC_FIRST_POT && source<=MIXSRC_LAST_POT) { + return IS_POT_AVAILABLE(POT1+source-MIXSRC_FIRST_POT); + } if (source>=MIXSRC_Rud && source<=MIXSRC_MAX) return true;