summaryrefslogtreecommitdiff
path: root/src/core/ao_adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ao_adc.h')
-rw-r--r--src/core/ao_adc.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ao_adc.h b/src/core/ao_adc.h
index db5bfab3..8ec740c4 100644
--- a/src/core/ao_adc.h
+++ b/src/core/ao_adc.h
@@ -18,13 +18,11 @@
#ifndef _AO_ADC_H_
#define _AO_ADC_H_
-
-
/*
* One set of samples read from the A/D converter or telemetry
*/
-
+#if AO_ADC_RING
/*
* ao_adc.c
*/
@@ -42,6 +40,7 @@ extern volatile __data uint8_t ao_adc_head;
#if HAS_ACCEL_REF
extern volatile __xdata uint16_t ao_accel_ref[AO_ADC_RING];
#endif
+#endif
/* Trigger a conversion sequence (called from the timer interrupt) */
void