Merged in paulpatience/nuttx-apps (pull request #17)
apps/examples/adc: Fix Kconfig file
This commit is contained in:
commit
02620cff35
@ -6,7 +6,7 @@
|
||||
config EXAMPLES_ADC
|
||||
bool "ADC example"
|
||||
default n
|
||||
depends on ADC && LIB_BOARDCTL
|
||||
depends on ADC && BOARDCTL_ADCTEST
|
||||
---help---
|
||||
Enable the ADC example
|
||||
|
||||
|
@ -305,7 +305,9 @@ int adc_main(int argc, char *argv[])
|
||||
#if defined(CONFIG_NSH_BUILTIN_APPS)
|
||||
for (; g_adcstate.count > 0; g_adcstate.count--)
|
||||
#elif CONFIG_EXAMPLES_ADC_NSAMPLES > 0
|
||||
for (g_adcstate.count = 0; g_adcstate.count < CONFIG_EXAMPLES_ADC_NSAMPLES; g_adcstate.count++)
|
||||
for (g_adcstate.count = 0;
|
||||
g_adcstate.count < CONFIG_EXAMPLES_ADC_NSAMPLES;
|
||||
g_adcstate.count++)
|
||||
#else
|
||||
for (;;)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user