From e192f82fcc5a31120bfb5ab0549bbf1da0e69ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Garc=C3=ADa=20Hierro?= Date: Thu, 19 Apr 2018 10:06:39 +0100 Subject: [PATCH] Don't make the report_cell_voltage setting depend on IBUS (#5711) report_cell_voltage was only compiled in when IBUS was enabled, but it's used for several telemetry protocols. Now it only depends on USE_TELEMETRY. --- src/main/interface/settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/interface/settings.c b/src/main/interface/settings.c index b2b7d6138..7894af0b0 100644 --- a/src/main/interface/settings.c +++ b/src/main/interface/settings.c @@ -785,8 +785,8 @@ const clivalue_t valueTable[] = { #endif // USE_TELEMETRY_FRSKY_HUB { "hott_alarm_int", VAR_UINT8 | MASTER_VALUE, .config.minmax = { 0, 120 }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, hottAlarmSoundInterval) }, { "pid_in_tlm", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = {TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, pidValuesAsTelemetry) }, -#if defined(USE_TELEMETRY_IBUS) { "report_cell_voltage", VAR_UINT8 | MASTER_VALUE | MODE_LOOKUP, .config.lookup = { TABLE_OFF_ON }, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, report_cell_voltage) }, +#if defined(USE_TELEMETRY_IBUS) { "ibus_sensor", VAR_UINT8 | MASTER_VALUE | MODE_ARRAY, .config.array.length = IBUS_SENSOR_COUNT, PG_TELEMETRY_CONFIG, offsetof(telemetryConfig_t, flysky_sensors)}, #endif #endif // USE_TELEMETRY