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:
@@ -31,23 +31,23 @@ struct MLinkSensor
|
||||
};
|
||||
|
||||
const MLinkSensor mlinkSensors[] = {
|
||||
{MLINK_RX_VOLTAGE, STR_BATT, UNIT_VOLTS, 1},
|
||||
{MLINK_VOLTAGE, STR_VFAS, UNIT_VOLTS, 1},
|
||||
{MLINK_CURRENT, STR_CURR, UNIT_AMPS, 1},
|
||||
{MLINK_VARIO, STR_VSPD, UNIT_METERS_PER_SECOND, 1},
|
||||
{MLINK_SPEED, STR_SPEED, UNIT_KMH, 1},
|
||||
{MLINK_RPM, STR_RPM, UNIT_RPMS, 0},
|
||||
{MLINK_TEMP, STR_TEMP1, UNIT_CELSIUS, 1},
|
||||
{MLINK_HEADING, STR_HDG, UNIT_DEGREE, 1},
|
||||
{MLINK_ALT, STR_ALT , UNIT_METERS, 0},
|
||||
{MLINK_FUEL, STR_FUEL, UNIT_PERCENT, 0},
|
||||
{MLINK_CAPACITY, STR_CAPACITY, UNIT_MAH, 0},
|
||||
{MLINK_FLOW, STR_FLOW, UNIT_MILLILITERS, 0},
|
||||
{MLINK_DISTANCE, STR_DIST, UNIT_KM, 1},
|
||||
{MLINK_LQI, STR_RSSI, UNIT_RAW, 0},
|
||||
{MLINK_LOSS, STR_LOSS, UNIT_RAW, 0},
|
||||
{MLINK_TX_RSSI, STR_TX_RSSI, UNIT_RAW, 0},
|
||||
{MLINK_TX_LQI, STR_TX_QUALITY, UNIT_RAW, 0},
|
||||
{MLINK_RX_VOLTAGE, STR_SENSOR_BATT, UNIT_VOLTS, 1},
|
||||
{MLINK_VOLTAGE, STR_SENSOR_VFAS, UNIT_VOLTS, 1},
|
||||
{MLINK_CURRENT, STR_SENSOR_CURR, UNIT_AMPS, 1},
|
||||
{MLINK_VARIO, STR_SENSOR_VSPD, UNIT_METERS_PER_SECOND, 1},
|
||||
{MLINK_SPEED, STR_SENSOR_SPEED, UNIT_KMH, 1},
|
||||
{MLINK_RPM, STR_SENSOR_RPM, UNIT_RPMS, 0},
|
||||
{MLINK_TEMP, STR_SENSOR_TEMP1, UNIT_CELSIUS, 1},
|
||||
{MLINK_HEADING, STR_SENSOR_HDG, UNIT_DEGREE, 1},
|
||||
{MLINK_ALT, STR_SENSOR_ALT , UNIT_METERS, 0},
|
||||
{MLINK_FUEL, STR_SENSOR_FUEL, UNIT_PERCENT, 0},
|
||||
{MLINK_CAPACITY, STR_SENSOR_CAPACITY, UNIT_MAH, 0},
|
||||
{MLINK_FLOW, STR_SENSOR_FLOW, UNIT_MILLILITERS, 0},
|
||||
{MLINK_DISTANCE, STR_SENSOR_DIST, UNIT_KM, 1},
|
||||
{MLINK_LQI, STR_SENSOR_RSSI, UNIT_RAW, 0},
|
||||
{MLINK_LOSS, STR_SENSOR_LOSS, UNIT_RAW, 0},
|
||||
{MLINK_TX_RSSI, STR_SENSOR_TX_RSSI, UNIT_RAW, 0},
|
||||
{MLINK_TX_LQI, STR_SENSOR_TX_QUALITY, UNIT_RAW, 0},
|
||||
};
|
||||
|
||||
const MLinkSensor * getMLinkSensor(uint16_t id)
|
||||
|
||||
Reference in New Issue
Block a user