From cb7cb4aaf8cc0e7e5e10da273f121b2c61d5bc01 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sun, 2 Feb 2014 21:51:42 +0100 Subject: [PATCH] [Taranis] 6pos multiswitch adjustments --- radio/src/gui/menu_general.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/radio/src/gui/menu_general.cpp b/radio/src/gui/menu_general.cpp index fb8935a28..7dec9d6c8 100644 --- a/radio/src/gui/menu_general.cpp +++ b/radio/src/gui/menu_general.cpp @@ -1284,7 +1284,7 @@ void menuGeneralHardware(uint8_t event) } #endif -#define XPOT_DELTA 5 +#define XPOT_DELTA 7 void menuCommonCalib(uint8_t event) { @@ -1305,7 +1305,7 @@ void menuCommonCalib(uint8_t event) else { if (reusableBuffer.calib.xpotsCalib[idx].lastCount < 255) reusableBuffer.calib.xpotsCalib[idx].lastCount++; } - if (reusableBuffer.calib.xpotsCalib[idx].lastCount == 8/*80ms*/) { + if (reusableBuffer.calib.xpotsCalib[idx].lastCount == 20/*200ms*/) { int16_t position = reusableBuffer.calib.xpotsCalib[idx].lastPosition; bool found = false; for (int j=0; jsteps[j] = (reusableBuffer.calib.xpotsCalib[idx].steps[j+1] + reusableBuffer.calib.xpotsCalib[idx].steps[j]) >> 5; } } + else { + g_eeGeneral.potsType &= ~(1<