1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00

Issue #909 fixed

This commit is contained in:
bsongis 2014-04-02 12:00:41 +02:00
parent 1bf95c9438
commit 4e65718126

View file

@ -1467,7 +1467,9 @@ bool getSwitch(int8_t swtch)
}
#endif
else if (cs_idx <= SWSRC_LAST_TRIM) {
result = trimDown(cs_idx-SWSRC_FIRST_TRIM);
uint8_t idx = cs_idx - SWSRC_FIRST_TRIM;
idx = (CONVERT_MODE(idx/2) << 1) + (idx & 1);
result = trimDown(idx);
}
#if ROTARY_ENCODERS > 0
else if (cs_idx == SWSRC_REa) {