1
0
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:
Dylan Laduranty 2019-11-28 09:07:52 +01:00
parent 53994bdfeb
commit 3f1027d0c2

View File

@ -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);
}