From d9c84d834f7fb4f36cee815dec2642737f73edc4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 9 Jun 2020 11:47:22 -0700 Subject: [PATCH] altos: Don't include baro-specific config values for easytimer These settings aren't used on easytimer, so don't include them in the configuration system. This makes sure they don't appear in altosui. Signed-off-by: Keith Packard --- src/kernel/ao_config.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/kernel/ao_config.c b/src/kernel/ao_config.c index 9fbc64bd..68792349 100644 --- a/src/kernel/ao_config.c +++ b/src/kernel/ao_config.c @@ -367,6 +367,8 @@ ao_config_send_frequency_set(void) #if HAS_FLIGHT +#if HAS_BARO + static void ao_config_main_deploy_show(void) { @@ -385,6 +387,8 @@ ao_config_main_deploy_set(void) _ao_config_edit_finish(); } +#endif + #if HAS_ACCEL static void ao_config_accel_calibrate_show(void) @@ -502,6 +506,7 @@ ao_config_accel_calibrate_set(void) } #endif /* HAS_ACCEL */ +#if HAS_BARO static void ao_config_apogee_delay_show(void) { @@ -537,6 +542,7 @@ ao_config_apogee_lockout_set(void) ao_config.apogee_lockout = r; _ao_config_edit_finish(); } +#endif #endif /* HAS_FLIGHT */ @@ -988,7 +994,7 @@ ao_config_save(void); #endif const struct ao_config_var ao_config_vars[] = { -#if HAS_FLIGHT +#if HAS_FLIGHT && HAS_BARO { "m \0Main deploy (m)", ao_config_main_deploy_set, ao_config_main_deploy_show, }, { "d \0Apogee delay (s)", -- 2.30.2