mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
tests/periph_adc: fix content printf on failure
This commit is contained in:
parent
53994bdfeb
commit
3f1027d0c2
@ -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…
x
Reference in New Issue
Block a user