Cosmetics
This commit is contained in:
@@ -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)
|
void drawSwitch(coord_t x, coord_t y, swsrc_t idx, LcdFlags flags)
|
||||||
{
|
{
|
||||||
char s[8];
|
char s[8];
|
||||||
getSwitchString(s, idx);
|
getSwitchPositionName(s, idx);
|
||||||
lcdDrawText(x, y, s, flags);
|
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)
|
void drawSwitch(coord_t x, coord_t y, int32_t idx, LcdFlags flags)
|
||||||
{
|
{
|
||||||
char s[8];
|
char s[8];
|
||||||
getSwitchString(s, idx);
|
getSwitchPositionName(s, idx);
|
||||||
lcdDrawText(x, y, s, flags);
|
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)
|
void drawSwitch(coord_t x, coord_t y, swsrc_t idx, LcdFlags flags)
|
||||||
{
|
{
|
||||||
char s[8];
|
char s[8];
|
||||||
getSwitchString(s, idx);
|
getSwitchPositionName(s, idx);
|
||||||
lcdDrawText(x, y, s, flags);
|
lcdDrawText(x, y, s, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ char * getSwitchName(char * dest, swsrc_t idx)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char * getSwitchString(char * dest, swsrc_t idx)
|
char * getSwitchPositionName(char * dest, swsrc_t idx)
|
||||||
{
|
{
|
||||||
if (idx == SWSRC_NONE) {
|
if (idx == SWSRC_NONE) {
|
||||||
return getStringAtIndex(dest, STR_VSWITCHES, 0);
|
return getStringAtIndex(dest, STR_VSWITCHES, 0);
|
||||||
@@ -405,7 +405,7 @@ char * getSourceString(char * dest, mixsrc_t idx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (idx <= MIXSRC_LAST_LOGICAL_SWITCH) {
|
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) {
|
else if (idx <= MIXSRC_LAST_TRAINER) {
|
||||||
strAppendStringWithIndex(dest, STR_PPM_TRAINER, idx - MIXSRC_FIRST_TRAINER + 1);
|
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 * getTimerString(char * dest, int32_t tme, uint8_t hours=0);
|
||||||
char * getCurveString(char * dest, int idx);
|
char * getCurveString(char * dest, int idx);
|
||||||
char * getGVarString(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 * getSwitchName(char * dest, swsrc_t idx);
|
||||||
char * getSourceString(char * dest, mixsrc_t idx);
|
char * getSourceString(char * dest, mixsrc_t idx);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user