From: Keith Packard Date: Wed, 21 May 2014 08:39:01 +0000 (-0700) Subject: altos/lpc: adc code computes number of active ADC channels X-Git-Tag: 1.3.2.2~86 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0a3312e725d914bbba6355e07d2f1d2833d2d6c2;ds=sidebyside 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 --- 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