From 71b0e72dd0820420be61891c38eb4645a04d92e7 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 11 Jan 2022 13:46:41 +0100 Subject: [PATCH] Remove calibration check when asserting availability of 6-pos switch positions (#1368) Thus allowing it to show on radio when calibration is invalid --- radio/src/gui/gui_common.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/radio/src/gui/gui_common.cpp b/radio/src/gui/gui_common.cpp index 9c3046c43..672dc5625 100644 --- a/radio/src/gui/gui_common.cpp +++ b/radio/src/gui/gui_common.cpp @@ -333,13 +333,7 @@ bool isSwitchAvailable(int swtch, SwitchContext context) #if NUM_XPOTS > 0 if (swtch >= SWSRC_FIRST_MULTIPOS_SWITCH && swtch <= SWSRC_LAST_MULTIPOS_SWITCH) { int index = (swtch - SWSRC_FIRST_MULTIPOS_SWITCH) / XPOTS_MULTIPOS_COUNT; - if (IS_POT_MULTIPOS(POT1+index)) { - StepsCalibData * calib = (StepsCalibData *) &g_eeGeneral.calib[POT1+index]; - return (calib->count >= ((swtch - SWSRC_FIRST_MULTIPOS_SWITCH) % XPOTS_MULTIPOS_COUNT)); - } - else { - return false; - } + return IS_POT_MULTIPOS(POT1+index); } #endif