From 0c2358d35a22ae7e71267f35a70314760049765d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 7 Dec 2020 10:48:58 +0100 Subject: [PATCH] Delete REa switch from SKY9X --- radio/src/dataconstants.h | 4 ---- radio/src/gui/gui_common.cpp | 6 ------ radio/src/strhelpers.cpp | 7 ------- 3 files changed, 17 deletions(-) diff --git a/radio/src/dataconstants.h b/radio/src/dataconstants.h index 39354f3f8..68e5bac5a 100644 --- a/radio/src/dataconstants.h +++ b/radio/src/dataconstants.h @@ -552,10 +552,6 @@ enum SwitchSources { SWSRC_TrimT6Up, #endif -#if defined(PCBSKY9X) - SWSRC_REa, -#endif - SWSRC_FIRST_LOGICAL_SWITCH SKIP, SWSRC_SW1 = SWSRC_FIRST_LOGICAL_SWITCH, SWSRC_SW2, diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index 8a1a08b53..a60581df6 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -344,12 +344,6 @@ bool isSwitchAvailable(int swtch, SwitchContext context) } #endif -#if defined(PCBSKY9X) && defined(REVX) - if (swtch == SWSRC_REa) { - return false; - } -#endif - if (swtch >= SWSRC_FIRST_LOGICAL_SWITCH && swtch <= SWSRC_LAST_LOGICAL_SWITCH) { if (context == GeneralCustomFunctionsContext) { return false; diff --git a/radio/src/strhelpers.cpp b/radio/src/strhelpers.cpp index 4694ab849..3248b5f22 100644 --- a/radio/src/strhelpers.cpp +++ b/radio/src/strhelpers.cpp @@ -374,16 +374,9 @@ char * getSwitchPositionName(char * dest, swsrc_t idx) } #endif -#if defined(PCBSKY9X) - else if (idx <= SWSRC_REa) { - getStringAtIndex(s, STR_VSWITCHES, IDX_TRIMS_IN_STR_VSWITCHES+idx-SWSRC_FIRST_TRIM); - } -#else else if (idx <= SWSRC_LAST_TRIM) { getStringAtIndex(s, STR_VSWITCHES, IDX_TRIMS_IN_STR_VSWITCHES+idx-SWSRC_FIRST_TRIM); } -#endif - else if (idx <= SWSRC_LAST_LOGICAL_SWITCH) { *s++ = 'L'; strAppendUnsigned(s, idx-SWSRC_FIRST_LOGICAL_SWITCH+1, 2);