From 0a3312e725d914bbba6355e07d2f1d2833d2d6c2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 21 May 2014 01:39:01 -0700 Subject: [PATCH] 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 --- src/lpc/ao_adc_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2