diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-05 17:14:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-05 17:14:28 -0700 |
commit | b8201bc9ba4a5f5f0522b68493cd5e7f013fd4bb (patch) | |
tree | 557decc61dec89a8cc783aba6eb09e1aa8a95885 /src/kernel/ao_log.c | |
parent | 3e28d8a242955d65d8cd50dbba4cad4609e2e1ae (diff) |
altos: Include sensor logging task only on flight boards
This lets TeleGPS use the logging infrastructure without wasting a
task to log sensor data
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log.c')
-rw-r--r-- | src/kernel/ao_log.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kernel/ao_log.c b/src/kernel/ao_log.c index 20febefe..d60485e0 100644 --- a/src/kernel/ao_log.c +++ b/src/kernel/ao_log.c @@ -196,7 +196,11 @@ ao_log_full(void) return ao_log_current_pos == ao_log_end_pos; } -#if HAS_ADC +#ifndef LOG_ADC +#define LOG_ADC HAS_ADC +#endif + +#if LOG_ADC static __xdata struct ao_task ao_log_task; #endif @@ -284,7 +288,7 @@ ao_log_init(void) #ifndef HAS_ADC #error Define HAS_ADC for ao_log.c #endif -#if HAS_ADC +#if LOG_ADC /* Create a task to log events to eeprom */ ao_add_task(&ao_log_task, ao_log, "log"); #endif |