diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-11 16:11:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-11 16:11:34 -0700 |
commit | 640422c028a2be898aa3a9048a0f6fad2e43dd8d (patch) | |
tree | 38c0239bd28dbdeb50ed3d30c3f645a832ec8b22 /src/ao_monitor.c | |
parent | 1d13460412046c53f36466193329caaa657bb278 (diff) |
altos: remove monitor disable stubs from altimeter code
Monitor mode in the ground-station boards must be disabled when the
radio is going to be used for another purpose, or the radio parameters
changed. That places monitor-mode disable calls in other parts of the
system which are shared with the altimeter code.
Elide the ao_set_monitor calls for builds which do not include any
monitoring code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_monitor.c')
-rw-r--r-- | src/ao_monitor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ao_monitor.c b/src/ao_monitor.c index 8f1b9e12..69eb58e8 100644 --- a/src/ao_monitor.c +++ b/src/ao_monitor.c @@ -18,6 +18,10 @@ #include "ao.h" #include "ao_telem.h" +#if !HAS_MONITOR +#error Must define HAS_MONITOR to 1 +#endif + __xdata uint8_t ao_monitoring; __pdata uint8_t ao_monitor_led; |