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
@@ -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);