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
@@ -35,6 +35,7 @@ struct GhostSensor
const char * name;
};
// clang-format off
#define GS(id,name,unit,precision) {id,unit,precision,name}
// telemetry sensors ID
@@ -90,8 +91,9 @@ const GhostSensor ghostSensors[] = {
GS(GHOST_ID_GPS_ALT, STR_SENSOR_GPSALT, UNIT_METERS, 0),
GS(GHOST_ID_GPS_SATS, STR_SENSOR_SATELLITES, UNIT_RAW, 0),
GS(0x00, NULL, UNIT_RAW, 0),
GS(0x00, NULL, UNIT_RAW, 0),
};
// clang-format on
const GhostSensor *getGhostSensor(uint8_t id)
{