samples: drivers: adc: Allow coverage calculation.

Sample must end to dump coverage data.

Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
This commit is contained in:
Bartlomiej Buczek 2024-06-13 08:55:49 +02:00 committed by Anas Nashif
parent 809c0923c6
commit 79f4f2ac31
2 changed files with 8 additions and 0 deletions

View file

@ -54,7 +54,11 @@ int main(void)
}
}
#ifndef CONFIG_COVERAGE
while (1) {
#else
for (int k = 0; k < 10; k++) {
#endif
printk("ADC reading[%u]:\n", count++);
for (size_t i = 0U; i < ARRAY_SIZE(adc_channels); i++) {
int32_t val_mv;

View file

@ -56,7 +56,11 @@ int main(void)
}
}
#ifndef CONFIG_COVERAGE
while (1) {
#else
for (int k = 0; k < 10; k++) {
#endif
printf("ADC sequence reading [%u]:\n", count++);
k_msleep(1000);