summaryrefslogtreecommitdiff
path: root/src/kernel/ao_log.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-21 14:38:00 -0700
committerKeith Packard <keithp@keithp.com>2014-05-30 17:32:53 -0700
commita339a91d64d011add2dfeccd5402af57d932b41a (patch)
tree976e1aa0f7af37b9453672b1f83bbf91588f9dc7 /src/kernel/ao_log.c
parent177d3c0333fd4218f01e05c78cbc5f186c8e32c0 (diff)
altos: Hacks to get telegps v1.0 running
Mine is busted, and there are a lot of cc115l kludges in here Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log.c')
-rw-r--r--src/kernel/ao_log.c8
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