mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #12833 from dylad/pr/tests/adc_fix_printf
tests/periph_adc: fix printf content on failure
This commit is contained in:
commit
b9b7e652e2
@ -52,7 +52,7 @@ int main(void)
|
||||
for (unsigned i = 0; i < ADC_NUMOF; i++) {
|
||||
sample = adc_sample(ADC_LINE(i), RES);
|
||||
if (sample < 0) {
|
||||
printf("ADC_LINE(%u): 10-bit resolution not applicable\n", i);
|
||||
printf("ADC_LINE(%u): selected resolution not applicable\n", i);
|
||||
} else {
|
||||
printf("ADC_LINE(%u): %i\n", i, sample);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user