Only show telemetry selection if it is sensible to do (as on Taranis/… (#4215)
* Only show telemetry selection if it is sensible to do (as on Taranis/Horus) * Cosmetics
This commit is contained in:
committed by
Bertrand Songis
parent
f4f07d3c0c
commit
0bdf935fc1
@@ -163,10 +163,18 @@ enum MenuModelTelemetryFrskyItems {
|
|||||||
#define VARIO_RANGE_ROWS (NAVIGATION_LINE_BY_LINE | 3)
|
#define VARIO_RANGE_ROWS (NAVIGATION_LINE_BY_LINE | 3)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined (PCBTARANIS)
|
||||||
|
#define TELEMETRY_TYPE_SHOW_TELEMETRY (g_model.moduleData[INTERNAL_MODULE].rfProtocol == RF_PROTO_OFF && g_model.moduleData[EXTERNAL_MODULE].type == MODULE_TYPE_PPM) ? (uint8_t)0 : HIDDEN_ROW
|
||||||
|
#elif defined (CPUARM)
|
||||||
|
#define TELEMETRY_TYPE_SHOW_TELEMETRY (g_model.moduleData[EXTERNAL_MODULE].type == MODULE_TYPE_PPM) ? (uint8_t)0 : HIDDEN_ROW
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(REVX)
|
#if defined(REVX)
|
||||||
#define TELEMETRY_TYPE_ROWS 0, 0,
|
#define TELEMETRY_TYPE_ROWS TELEMETRY_TYPE_SHOW_TELEMETRY, TELEMETRY_TYPE_SHOW_TELEMETRY,
|
||||||
#elif defined(CPUARM)
|
#elif defined(CPUARM)
|
||||||
#define TELEMETRY_TYPE_ROWS 0,
|
#define TELEMETRY_TYPE_ROWS TELEMETRY_TYPE_SHOW_TELEMETRY,
|
||||||
#else
|
#else
|
||||||
#define TELEMETRY_TYPE_ROWS
|
#define TELEMETRY_TYPE_ROWS
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user