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>
#else
printf("tick: %5u", packet.tick);
d = (int16_t *) (&packet.adc);
#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
printf (" %2d: %5d", i, d[i]);
printf("\n");
#endif