summaryrefslogtreecommitdiff
path: root/src/core/ao_log.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-06-24 14:28:06 -0700
committerKeith Packard <keithp@keithp.com>2013-06-24 14:30:23 -0700
commite148582217d6e02ac90a68e2bb2532947378d36f (patch)
tree40ca17c7f77826ce85eb5cabf2f048e85a730183 /src/core/ao_log.c
parent261ec8fc7043e9314469e919aa96acc461f7e5f2 (diff)
altos: Support mega-style logging without ADC
Used for TeleGPS, just exposes the necessary log writing function without also including the ADC writing code. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_log.c')
-rw-r--r--src/core/ao_log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ao_log.c b/src/core/ao_log.c
index 7884ec3c..8bcb7707 100644
--- a/src/core/ao_log.c
+++ b/src/core/ao_log.c
@@ -278,6 +278,11 @@ ao_log_init(void)
ao_cmd_register(&ao_log_cmds[0]);
+#ifndef HAS_ADC
+#error Define HAS_ADC for ao_log.c
+#endif
+#if HAS_ADC
/* Create a task to log events to eeprom */
ao_add_task(&ao_log_task, ao_log, "log");
+#endif
}