mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 04:45:17 +03:00
Cosmetics based on Bertrand's commments
This commit is contained in:
parent
bf600140d3
commit
8cb7031cf6
3 changed files with 3 additions and 3 deletions
|
@ -917,7 +917,7 @@ void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att)
|
|||
else if (idx < MIXSRC_FIRST_TIMER) {
|
||||
lcdDrawTextAtIndex(x, y, STR_VSRCRAW, idx-MIXSRC_Rud+1-MAX_LOGICAL_SWITCHES-MAX_TRAINER_CHANNELS-MAX_OUTPUT_CHANNELS-MAX_GVARS, att);
|
||||
}
|
||||
else if (idx < MIXSRC_FIRST_TELEM) {
|
||||
else if (idx <= MIXSRC_LAST_TIMER) {
|
||||
if(ZEXIST(g_model.timers[idx-MIXSRC_FIRST_TIMER].name)) {
|
||||
lcdDrawSizedText(x, y, g_model.timers[idx-MIXSRC_FIRST_TIMER].name, LEN_TIMER_NAME, ZCHAR|att);
|
||||
}
|
||||
|
|
|
@ -649,7 +649,7 @@ void drawSource(coord_t x, coord_t y, uint32_t idx, LcdFlags att)
|
|||
else if (idx < MIXSRC_FIRST_TIMER) {
|
||||
lcdDrawTextAtIndex(x, y, STR_VSRCRAW, idx-MIXSRC_Rud+1-MAX_LOGICAL_SWITCHES-MAX_TRAINER_CHANNELS-MAX_OUTPUT_CHANNELS-MAX_GVARS, att);
|
||||
}
|
||||
else if (idx < MIXSRC_FIRST_TELEM) {
|
||||
else if (idx <= MIXSRC_LAST_TIMER) {
|
||||
if(ZEXIST(g_model.timers[idx-MIXSRC_FIRST_TIMER].name)) {
|
||||
lcdDrawSizedText(x, y, g_model.timers[idx-MIXSRC_FIRST_TIMER].name, LEN_TIMER_NAME, ZCHAR|att);
|
||||
}
|
||||
|
|
|
@ -382,7 +382,7 @@ char * getSourceString(char * dest, mixsrc_t idx)
|
|||
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) {
|
||||
else if (idx <= MIXSRC_LAST_TIMER) {
|
||||
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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue