mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 03:49:52 +03:00
480x272
This commit is contained in:
parent
871302a1b1
commit
bf600140d3
1 changed files with 10 additions and 1 deletions
|
@ -379,9 +379,18 @@ char * getSourceString(char * dest, mixsrc_t idx)
|
|||
else if (idx <= MIXSRC_LAST_GVAR) {
|
||||
strAppendStringWithIndex(dest, STR_GV, idx - MIXSRC_GVAR1 + 1);
|
||||
}
|
||||
else if (idx < MIXSRC_FIRST_TELEM) {
|
||||
else if (idx < MIXSRC_FIRST_TIMER) {
|
||||
getStringAtIndex(dest, STR_VSRCRAW, idx-MIXSRC_Rud+1-MAX_LOGICAL_SWITCHES-MAX_TRAINER_CHANNELS-MAX_OUTPUT_CHANNELS-MAX_GVARS);
|
||||
}
|
||||
else if (idx < MIXSRC_FIRST_TELEM) {
|
||||
if(ZEXIST(g_model.timers[idx-MIXSRC_FIRST_TIMER].name)) {
|
||||
zchar2str(dest,g_model.timers[idx-MIXSRC_FIRST_TIMER].name, LEN_TIMER_NAME);
|
||||
dest[LEN_TIMER_NAME] = '\0';
|
||||
}
|
||||
else {
|
||||
getStringAtIndex(dest, STR_VSRCRAW, idx-MIXSRC_Rud+1-MAX_LOGICAL_SWITCHES-MAX_TRAINER_CHANNELS-MAX_OUTPUT_CHANNELS-MAX_GVARS);
|
||||
}
|
||||
}
|
||||
else {
|
||||
idx -= MIXSRC_FIRST_TELEM;
|
||||
div_t qr = div(idx, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue