chore: formatting of telemetry structs for readability (#4753)

This commit is contained in:
HThuren
2024-03-18 10:27:53 +10:00
committed by GitHub
parent ac3c46a759
commit 5b4b3aa09a
9 changed files with 99 additions and 82 deletions
+3 -1
View File
@@ -23,6 +23,7 @@
#include "opentx.h"
// clang-format off
#define CS(id,subId,name,unit,precision) {id,subId,unit,precision,name}
const CrossfireSensor crossfireSensors[] = {
@@ -57,8 +58,9 @@ const CrossfireSensor crossfireSensors[] = {
CS(FLIGHT_MODE_ID, 0, STR_SENSOR_FLIGHT_MODE, UNIT_TEXT, 0),
CS(CF_VARIO_ID, 0, STR_SENSOR_VSPD, UNIT_METERS_PER_SECOND, 2),
CS(BARO_ALT_ID, 0, STR_SENSOR_ALT, UNIT_METERS, 2),
CS(0, 0, "UNKNOWN", UNIT_RAW, 0),
CS(0, 0, "UNKNOWN", UNIT_RAW, 0),
};
// clang-format on
const CrossfireSensor & getCrossfireSensor(uint8_t id, uint8_t subId)
{