projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Add wiring docs to st-7565 header
[fw/altos]
/
src
/
kernel
/
ao_config.c
diff --git
a/src/kernel/ao_config.c
b/src/kernel/ao_config.c
index be3e8c7222d1bc48746700a8f1ac32d0d7ac6daf..565ac61e450e6d6a567975761e0b4fcb02bf2b4d 100644
(file)
--- a/
src/kernel/ao_config.c
+++ b/
src/kernel/ao_config.c
@@
-883,6
+883,7
@@
ao_config_radio_10mw_set(void)
#endif
#endif
+#if HAS_BARO
static void
ao_config_report_feet_show(void)
{
static void
ao_config_report_feet_show(void)
{
@@
-899,7
+900,7
@@
ao_config_report_feet_set(void)
ao_config.report_feet = !!r;
_ao_config_edit_finish();
}
ao_config.report_feet = !!r;
_ao_config_edit_finish();
}
-
+#endif
#if HAS_BEEP
static void
#if HAS_BEEP
static void
@@
-1152,8
+1153,10
@@
const struct ao_config_var ao_config_vars[] = {
{ "p <0 no limit, 1 limit>\0Limit radio power to 10mW",
ao_config_radio_10mw_set, ao_config_radio_10mw_show },
#endif
{ "p <0 no limit, 1 limit>\0Limit radio power to 10mW",
ao_config_radio_10mw_set, ao_config_radio_10mw_show },
#endif
+#if HAS_BARO
{ "u <0 meters, 1 feet>\0Units to report height after landing",
ao_config_report_feet_set, ao_config_report_feet_show },
{ "u <0 meters, 1 feet>\0Units to report height after landing",
ao_config_report_feet_set, ao_config_report_feet_show },
+#endif
{ "s\0Show",
ao_config_show, 0 },
#if HAS_CONFIG_SAVE
{ "s\0Show",
ao_config_show, 0 },
#if HAS_CONFIG_SAVE