mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
Multipos improvements
This commit is contained in:
parent
9c966515f2
commit
38886e31a4
3 changed files with 11 additions and 4 deletions
|
@ -246,7 +246,10 @@ char * getSwitchString(char * dest, swsrc_t idx)
|
|||
#if NUM_XPOTS > 0
|
||||
else if (idx <= SWSRC_LAST_MULTIPOS_SWITCH) {
|
||||
div_t swinfo = div(idx - SWSRC_FIRST_MULTIPOS_SWITCH, XPOTS_MULTIPOS_COUNT);
|
||||
strAppendStringWithIndex(s, "S", swinfo.quot*10+swinfo.rem+11);
|
||||
char temp[LEN_ANA_NAME+1];
|
||||
getSourceString(temp, MIXSRC_FIRST_POT+swinfo.quot);
|
||||
temp[LEN_ANA_NAME]= '\0';
|
||||
strAppendStringWithIndex(s, temp, swinfo.rem+1);
|
||||
}
|
||||
#endif
|
||||
else if (idx <= SWSRC_LAST_TRIM) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue