chore: Remove obsolete language defines, single source for telemetry sensor names (#3119)
* - all telemetry sensor name definitions in one place (untranslated.h) - all telemetry sensor name definitions follow the naming convention STR_SENSOR_<sensor> - eliminated one redundant definition - editorial updates to telemetry protocols code to reflect the naming convention changes - re-introduced translations in da.h (STR_SENSOR_THROTTLE and STR_SENSOR_SPEED) - re-introduced translation in it.h (STR_SENSOR_GPSDATETIME) - re-introduced translation for fr.h ( STR_SENSOR_BATT) - saved 160 Bytes of flash * removed obsolete translation saved 280 byte flash memory in total * finally removed extern const char STR_MENUTEMPLATES[]; definition adjusted da.h, fr.h, it.h local sensor name definitions to naming conventions STR_SENSOR_<senosr> * corrected merge removed obsolete #ifdef * some more obsolete ones * added TW and CN translation for TR_PERIOD and TR_INTERVAL fixed problem in /radio/src/gui/colorlcd/fullscreen_dialog.cpp preventing builds for CZ, IT and FR languages
This commit is contained in:
@@ -37,12 +37,12 @@ const CrossfireSensor crossfireSensors[] = {
|
||||
{LINK_RX_ID, 0, STR_SENSOR_RX_RSSI_PERC, UNIT_PERCENT, 0},
|
||||
{LINK_RX_ID, 1, STR_SENSOR_RX_RF_POWER, UNIT_DBM, 0},
|
||||
{LINK_TX_ID, 0, STR_SENSOR_TX_RSSI_PERC, UNIT_PERCENT, 0},
|
||||
{LINK_TX_ID, 1, STR_SENSOR_TX_RF_POWER, UNIT_DBM, 0},
|
||||
{LINK_TX_ID, 1, STR_SENSOR_TX_POWER, UNIT_DBM, 0},
|
||||
{LINK_TX_ID, 2, STR_SENSOR_TX_FPS, UNIT_HERTZ, 0},
|
||||
{BATTERY_ID, 0, STR_SENSOR_BATT, UNIT_VOLTS, 1},
|
||||
{BATTERY_ID, 1, STR_SENSOR_CURR, UNIT_AMPS, 1},
|
||||
{BATTERY_ID, 2, STR_SENSOR_CAPACITY, UNIT_MAH, 0},
|
||||
{BATTERY_ID, 3, STR_BATT_PERCENT, UNIT_PERCENT, 0},
|
||||
{BATTERY_ID, 3, STR_SENSOR_BATT_PERCENT, UNIT_PERCENT, 0},
|
||||
{GPS_ID, 0, STR_SENSOR_GPS, UNIT_GPS_LATITUDE, 0},
|
||||
{GPS_ID, 0, STR_SENSOR_GPS, UNIT_GPS_LONGITUDE, 0},
|
||||
{GPS_ID, 2, STR_SENSOR_GSPD, UNIT_KMH, 1},
|
||||
|
||||
Reference in New Issue
Block a user