mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
Cosmetics
This commit is contained in:
parent
8449a8f617
commit
530deae84f
5 changed files with 6 additions and 6 deletions
|
@ -791,7 +791,7 @@ void putsModelName(coord_t x, coord_t y, char *name, uint8_t id, LcdFlags att)
|
|||
void drawSwitch(coord_t x, coord_t y, swsrc_t idx, LcdFlags flags)
|
||||
{
|
||||
char s[8];
|
||||
getSwitchString(s, idx);
|
||||
getSwitchPositionName(s, idx);
|
||||
lcdDrawText(x, y, s, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -696,7 +696,7 @@ void putsModelName(coord_t x, coord_t y, char *name, uint8_t id, LcdFlags att)
|
|||
void drawSwitch(coord_t x, coord_t y, int32_t idx, LcdFlags flags)
|
||||
{
|
||||
char s[8];
|
||||
getSwitchString(s, idx);
|
||||
getSwitchPositionName(s, idx);
|
||||
lcdDrawText(x, y, s, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@ void putsModelName(coord_t x, coord_t y, char * name, uint8_t id, LcdFlags att)
|
|||
void drawSwitch(coord_t x, coord_t y, swsrc_t idx, LcdFlags flags)
|
||||
{
|
||||
char s[8];
|
||||
getSwitchString(s, idx);
|
||||
getSwitchPositionName(s, idx);
|
||||
lcdDrawText(x, y, s, flags);
|
||||
}
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ char * getSwitchName(char * dest, swsrc_t idx)
|
|||
}
|
||||
#endif
|
||||
|
||||
char * getSwitchString(char * dest, swsrc_t idx)
|
||||
char * getSwitchPositionName(char * dest, swsrc_t idx)
|
||||
{
|
||||
if (idx == SWSRC_NONE) {
|
||||
return getStringAtIndex(dest, STR_VSWITCHES, 0);
|
||||
|
@ -405,7 +405,7 @@ char * getSourceString(char * dest, mixsrc_t idx)
|
|||
}
|
||||
}
|
||||
else if (idx <= MIXSRC_LAST_LOGICAL_SWITCH) {
|
||||
getSwitchString(dest, SWSRC_SW1 + idx - MIXSRC_SW1);
|
||||
getSwitchPositionName(dest, SWSRC_SW1 + idx - MIXSRC_SW1);
|
||||
}
|
||||
else if (idx <= MIXSRC_LAST_TRAINER) {
|
||||
strAppendStringWithIndex(dest, STR_PPM_TRAINER, idx - MIXSRC_FIRST_TRAINER + 1);
|
||||
|
|
|
@ -35,7 +35,7 @@ char * strAppendStringWithIndex(char * dest, const char * s, int idx);
|
|||
char * getTimerString(char * dest, int32_t tme, uint8_t hours=0);
|
||||
char * getCurveString(char * dest, int idx);
|
||||
char * getGVarString(char * dest, int idx);
|
||||
char * getSwitchString(char * dest, swsrc_t idx);
|
||||
char * getSwitchPositionName(char * dest, swsrc_t idx);
|
||||
char * getSwitchName(char * dest, swsrc_t idx);
|
||||
char * getSourceString(char * dest, mixsrc_t idx);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue