summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-21 01:39:01 -0700
committerKeith Packard <keithp@keithp.com>2014-05-21 01:43:12 -0700
commit0a3312e725d914bbba6355e07d2f1d2833d2d6c2 (patch)
tree86cc392390cb08b941c3f9b52c2a50f745af64ba
parentb278a73cb54ba2f107bf91089f87c11528f017ab (diff)
altos/lpc: adc code computes number of active ADC channels
Don't require the application to provide AO_NUM_ADC when AO_ADC_NUM is computed automatically. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/lpc/ao_adc_lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc/ao_adc_lpc.c b/src/lpc/ao_adc_lpc.c
index e1aae0e4..b24163ee 100644
--- a/src/lpc/ao_adc_lpc.c
+++ b/src/lpc/ao_adc_lpc.c
@@ -160,7 +160,7 @@ ao_adc_dump(void) __reentrant
#else
printf("tick: %5u", packet.tick);
d = (int16_t *) (&packet.adc);
- for (i = 0; i < AO_NUM_ADC; i++)
+ for (i = 0; i < AO_ADC_NUM; i++)
printf (" %2d: %5d", i, d[i]);
printf("\n");
#endif