[Taranis] 6pos multiswitch fix

This commit is contained in:
Bertrand Songis
2014-02-02 22:50:36 +01:00
parent 64a8349120
commit 413c146fe0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2519,7 +2519,7 @@ void getADC()
#if defined(PCBTARANIS)
if (s_noScroll) v = temp[x] >> 1;
StepsCalibData * calib = (StepsCalibData *) &g_eeGeneral.calib[x];
if (IS_MULTIPOS_POT(x) && calib->count>0 && calib->count<POTS_POS_COUNT) {
if (!s_noScroll && IS_MULTIPOS_POT(x) && calib->count>0 && calib->count<POTS_POS_COUNT) {
uint8_t vShifted = (v >> 4);
s_anaFilt[x] = 2*RESX;
for (int i=0; i<calib->count; i++) {