1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

Constants renamed

This commit is contained in:
bsongis 2014-05-24 14:36:57 +02:00
parent 5463a93f48
commit 8f9391a8df
13 changed files with 27 additions and 27 deletions

View file

@ -5699,13 +5699,13 @@ void menuModelTelemetry(uint8_t event)
case ITEM_TELEMETRY_USR_VOLTAGE_SOURCE: case ITEM_TELEMETRY_USR_VOLTAGE_SOURCE:
lcd_putsLeft(y, STR_VOLTAGE); lcd_putsLeft(y, STR_VOLTAGE);
lcd_putsiAtt(TELEM_COL2, y, STR_VOLTSRC, g_model.frsky.voltsSource+1, attr); lcd_putsiAtt(TELEM_COL2, y, STR_AMPSRC, g_model.frsky.voltsSource+1, attr);
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.voltsSource, 3); if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.voltsSource, 3);
break; break;
case ITEM_TELEMETRY_USR_CURRENT_SOURCE: case ITEM_TELEMETRY_USR_CURRENT_SOURCE:
lcd_putsLeft(y, STR_CURRENT); lcd_putsLeft(y, STR_CURRENT);
lcd_putsiAtt(TELEM_COL2, y, STR_VOLTSRC, g_model.frsky.currentSource, attr); lcd_putsiAtt(TELEM_COL2, y, STR_AMPSRC, g_model.frsky.currentSource, attr);
if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.currentSource, 3); if (attr) CHECK_INCDEC_MODELVAR_ZERO(event, g_model.frsky.currentSource, 3);
break; break;

View file

@ -331,7 +331,7 @@ void menuTelemetryFrsky(uint8_t event)
else if (s_frsky_view == e_frsky_voltages) { else if (s_frsky_view == e_frsky_voltages) {
// Volts / Amps / Watts / mAh // Volts / Amps / Watts / mAh
uint8_t analog = 0; uint8_t analog = 0;
lcd_putsiAtt(0, 2*FH, STR_VOLTSRC, g_model.frsky.voltsSource+1, 0); lcd_putsiAtt(0, 2*FH, STR_AMPSRC, g_model.frsky.voltsSource+1, 0);
switch(g_model.frsky.voltsSource) { switch(g_model.frsky.voltsSource) {
case 0: case 0:
case 1: case 1:
@ -349,7 +349,7 @@ void menuTelemetryFrsky(uint8_t event)
} }
if (g_model.frsky.currentSource) { if (g_model.frsky.currentSource) {
lcd_putsiAtt(0, 4*FH, STR_VOLTSRC, g_model.frsky.currentSource, 0); lcd_putsiAtt(0, 4*FH, STR_AMPSRC, g_model.frsky.currentSource, 0);
switch(g_model.frsky.currentSource) { switch(g_model.frsky.currentSource) {
case 1: case 1:
case 2: case 2:

View file

@ -134,8 +134,8 @@ extern const pm_char STR_OPEN9X[];
#define OFS_VALARMFN (OFS_VALARM + sizeof(TR_VALARM)) #define OFS_VALARMFN (OFS_VALARM + sizeof(TR_VALARM))
#define OFS_VTELPROTO (OFS_VALARMFN + sizeof(TR_VALARMFN)) #define OFS_VTELPROTO (OFS_VALARMFN + sizeof(TR_VALARMFN))
#define OFS_GPSFORMAT (OFS_VTELPROTO + sizeof(TR_VTELPROTO)) #define OFS_GPSFORMAT (OFS_VTELPROTO + sizeof(TR_VTELPROTO))
#define OFS_VOLTSRC (OFS_GPSFORMAT + sizeof(TR_GPSFORMAT)) #define OFS_AMPSRC (OFS_GPSFORMAT + sizeof(TR_GPSFORMAT))
#define OFS_VARIOSRC (OFS_VOLTSRC + sizeof(TR_VOLTSRC)) #define OFS_VARIOSRC (OFS_AMPSRC + sizeof(TR_AMPSRC))
#define OFS_VSCREEN (OFS_VARIOSRC + sizeof(TR_VARIOSRC)) #define OFS_VSCREEN (OFS_VARIOSRC + sizeof(TR_VARIOSRC))
#define OFS_VTEMPLATES (OFS_VSCREEN + sizeof(TR_VSCREEN)) #define OFS_VTEMPLATES (OFS_VSCREEN + sizeof(TR_VSCREEN))
#else #else
@ -229,7 +229,7 @@ extern const pm_char STR_OPEN9X[];
#define STR_VALARMFN (STR_OPEN9X + OFS_VALARMFN) #define STR_VALARMFN (STR_OPEN9X + OFS_VALARMFN)
#define STR_VTELPROTO (STR_OPEN9X + OFS_VTELPROTO) #define STR_VTELPROTO (STR_OPEN9X + OFS_VTELPROTO)
#define STR_GPSFORMAT (STR_OPEN9X + OFS_GPSFORMAT) #define STR_GPSFORMAT (STR_OPEN9X + OFS_GPSFORMAT)
#define STR_VOLTSRC (STR_OPEN9X + OFS_VOLTSRC) #define STR_AMPSRC (STR_OPEN9X + OFS_AMPSRC)
#define STR_VARIOSRC (STR_OPEN9X + OFS_VARIOSRC) #define STR_VARIOSRC (STR_OPEN9X + OFS_VARIOSRC)
#define STR_VSCREEN (STR_OPEN9X + OFS_VSCREEN) #define STR_VSCREEN (STR_OPEN9X + OFS_VSCREEN)
#define STR_TELEMCHNS (STR_OPEN9X + OFS_TELEMCHNS) #define STR_TELEMCHNS (STR_OPEN9X + OFS_TELEMCHNS)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "Kein\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "Kein\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC TR("\003", "\007") #define LEN_AMPSRC TR("\003", "\007")
#define TR_VOLTSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ") #define TR_AMPSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ")
#define LEN_VARIOSRC "\004" #define LEN_VARIOSRC "\004"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC TR("\003", "\007") #define LEN_AMPSRC TR("\003", "\007")
#define TR_VOLTSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ") #define TR_AMPSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ")
#define LEN_VARIOSRC "\004" #define LEN_VARIOSRC "\004"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "Nada\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "Nada\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "Aucun ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "Aucun ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Elm" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Elm"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "None\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC TR("\003", "\007") #define LEN_AMPSRC TR("\003", "\007")
#define TR_VOLTSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ") #define TR_AMPSRC TR("---""A1\0""A2\0""FAS""Cel", "---\0 ""A1\0 ""A2\0 ""FAS\0 ""Cells\0 ")
#define LEN_VARIOSRC "\004" #define LEN_VARIOSRC "\004"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "Nada\0 ""Hub\0 ""WSHHigh" #define TR_VTELPROTO "Nada\0 ""Hub\0 ""WSHHigh"
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)

View file

@ -354,8 +354,8 @@
#define LEN_VTELPROTO "\007" #define LEN_VTELPROTO "\007"
#define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHög." #define TR_VTELPROTO "---\0 ""Hub\0 ""WSHHög."
#define LEN_VOLTSRC "\003" #define LEN_AMPSRC "\003"
#define TR_VOLTSRC "---""A1\0""A2\0""FAS""Cel" #define TR_AMPSRC "---""A1\0""A2\0""FAS""Cel"
#define LEN_VARIOSRC "\005" #define LEN_VARIOSRC "\005"
#if defined(FRSKY_SPORT) #if defined(FRSKY_SPORT)