1
0
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:
benpicco 2019-11-28 11:57:38 +01:00 committed by GitHub
commit b9b7e652e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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