mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Issue #909 fixed
This commit is contained in:
parent
1bf95c9438
commit
4e65718126
1 changed files with 3 additions and 1 deletions
|
@ -1467,7 +1467,9 @@ bool getSwitch(int8_t swtch)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (cs_idx <= SWSRC_LAST_TRIM) {
|
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
|
#if ROTARY_ENCODERS > 0
|
||||||
else if (cs_idx == SWSRC_REa) {
|
else if (cs_idx == SWSRC_REa) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue