Strings big cleaning session (#6426)

Strings cleaning session
This commit is contained in:
Bertrand Songis
2019-05-17 19:07:28 +02:00
committed by GitHub
parent fabeece2f8
commit 0f192fde24
27 changed files with 835 additions and 1165 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ void lcdDrawText(coord_t x, coord_t y, const char * s);
void lcdDrawSizedText(coord_t x, coord_t y, const char * s, unsigned char len);
void lcdDrawTextAlignedLeft(coord_t y, const char * s);
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(TR_##s)*FW+FW+1)/2, y, STR_##s)
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(s)*FW+FW+1)/2, y, s)
void lcdDrawHexNumber(coord_t x, coord_t y, uint32_t val, LcdFlags mode=0);
void lcdDrawHexChar(coord_t x, coord_t y, uint8_t val, LcdFlags flags=0);
+1 -1
View File
@@ -51,7 +51,7 @@ void menuModelFailsafe(event_t event)
SIMPLE_SUBMENU_NOTITLE(sentModuleChannels(g_moduleIdx));
lcdDrawTextAlignedCenter(0, FAILSAFESET);
lcdDrawTextAlignedCenter(0, TR_FAILSAFESET);
lcdInvertLine(0);
for (uint8_t i=0; i<NUM_BODY_LINES; i++) {
+1 -1
View File
@@ -144,7 +144,7 @@ void menuModelExpoOne(event_t event)
break;
case EXPO_FIELD_SIDE:
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_SIDE, STR_VSIDE, 4-ed->mode, 1, 3, RIGHT | attr, event);
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_SIDE, STR_VCURVEFUNC, 4-ed->mode, 1, 3, RIGHT | attr, event);
break;
case EXPO_FIELD_TRIM:
+1 -1
View File
@@ -292,7 +292,7 @@ void menuModelExpoOne(event_t event)
break;
case EXPO_FIELD_SIDE:
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN-3*FW, y, STR_SIDE, STR_VSIDE, 4-ed->mode, 1, 3, attr, event);
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN-3*FW, y, STR_SIDE, STR_VCURVEFUNC, 4-ed->mode, 1, 3, attr, event);
break;
}
y += FH;
+1 -1
View File
@@ -187,7 +187,7 @@ void menuFirstCalib(event_t event)
chainMenu(menuMainView);
}
else {
lcdDrawTextAlignedCenter(0*FH, MENUCALIBRATION);
lcdDrawTextAlignedCenter(0*FH, TR_MENUCALIBRATION);
lcdInvertLine(0);
menuCommonCalib(event);
}
+2 -2
View File
@@ -49,10 +49,10 @@ void menuChannelsView(event_t event)
ch = 0;
if (mixersView) {
lcdDrawTextAlignedCenter(0, MIXERS_MONITOR);
lcdDrawTextAlignedCenter(0, TR_MIXERS_MONITOR);
}
else {
lcdDrawTextAlignedCenter(0, CHANNELS_MONITOR);
lcdDrawTextAlignedCenter(0, TR_CHANNELS_MONITOR);
}
lcdInvertLine(0);
+1 -1
View File
@@ -114,7 +114,7 @@ void lcdDrawText(coord_t x, coord_t y, const char * s);
void lcdDrawSizedText(coord_t x, coord_t y, const char * s, unsigned char len);
void lcdDrawTextAlignedLeft(coord_t y, const char * s);
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(TR_##s)*FW+FW+1)/2, y, STR_##s)
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(s)*FW+FW+1)/2, y, s)
void lcdDrawHexNumber(coord_t x, coord_t y, uint32_t val, LcdFlags mode=0);
void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags mode, uint8_t len);
+1 -1
View File
@@ -81,7 +81,7 @@ void menuModelFailsafe(event_t event)
}
}
lcdDrawTextAlignedCenter(0, FAILSAFESET);
lcdDrawTextAlignedCenter(0, TR_FAILSAFESET);
lcdInvertLine(0);
coord_t x = colW;
+1 -1
View File
@@ -145,7 +145,7 @@ void menuModelExpoOne(event_t event)
break;
case EXPO_FIELD_SIDE:
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_SIDE, STR_VSIDE, 4-ed->mode, 1, 3, attr, event);
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_SIDE, STR_VCURVEFUNC, 4-ed->mode, 1, 3, attr, event);
break;
case EXPO_FIELD_TRIM:
+1 -1
View File
@@ -209,7 +209,7 @@ void menuFirstCalib(event_t event)
chainMenu(menuMainView);
}
else {
lcdDrawTextAlignedCenter(0*FH, MENUCALIBRATION);
lcdDrawTextAlignedCenter(0*FH, TR_MENUCALIBRATION);
lcdInvertLine(0);
menuCommonCalib(event);
}
+2 -2
View File
@@ -60,9 +60,9 @@ void menuChannelsView(event_t event)
limits *= LIMIT_EXT_PERCENT / 100;
if (mixersView)
lcdDrawTextAlignedCenter(0, MIXERS_MONITOR);
lcdDrawTextAlignedCenter(0, TR_MIXERS_MONITOR);
else
lcdDrawTextAlignedCenter(0, CHANNELS_MONITOR);
lcdDrawTextAlignedCenter(0, TR_CHANNELS_MONITOR);
lcdInvertLine(0);
+1 -1
View File
@@ -286,7 +286,7 @@ bool menuModelExpoOne(event_t event)
case EXPO_FIELD_SIDE:
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_SIDE);
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_VSIDE, 4-ed->mode, 1, 3, attr, event);
ed->mode = 4 - editChoice(EXPO_ONE_2ND_COLUMN, y, STR_VCURVEFUNC, 4-ed->mode, 1, 3, attr, event);
break;
case EXPO_FIELD_TRIM: