From fbb90ff5d587ddafbc5fae6df430cffd0f087036 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 2 Jun 2014 15:20:22 +0200 Subject: [PATCH] No Center Beeps during calibration --- radio/src/gui/menu_general.cpp | 8 ++++---- radio/src/gui/menus.cpp | 10 +++++----- radio/src/gui/menus.h | 2 +- radio/src/mixer.cpp | 2 +- radio/src/opentx.cpp | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/radio/src/gui/menu_general.cpp b/radio/src/gui/menu_general.cpp index 3c33a02dd..9165dcd66 100644 --- a/radio/src/gui/menu_general.cpp +++ b/radio/src/gui/menu_general.cpp @@ -1501,9 +1501,9 @@ void menuCommonCalib(uint8_t event) } } - s_noScroll = reusableBuffer.calib.state; // make sure we don't scroll while calibrating + calibrationState = reusableBuffer.calib.state; // make sure we don't scroll while calibrating - switch(event) + switch (event) { case EVT_ENTRY: reusableBuffer.calib.state = 0; @@ -1524,7 +1524,7 @@ void menuCommonCalib(uint8_t event) case 1: // SET MIDPOINT - lcd_putsAtt(0*FW, 2*FH, STR_SETMIDPOINT, s_noScroll ? INVERS : 0); + lcd_putsAtt(0*FW, 2*FH, STR_SETMIDPOINT, INVERS); lcd_putsLeft(3*FH, STR_MENUWHENDONE); for (uint8_t i=0; i> 3; #if defined(PCBTARANIS) - if (s_noScroll) v = temp[x] >> 1; + if (calibrationState) v = temp[x] >> 1; StepsCalibData * calib = (StepsCalibData *) &g_eeGeneral.calib[x]; - if (!s_noScroll && IS_POT_MULTIPOS(x) && calib->count>0 && calib->countcount>0 && calib->count> 4); s_anaFilt[x] = 2*RESX; for (int i=0; icount; i++) {