diff --git a/cpu/stm32f4/periph/adc.c b/cpu/stm32f4/periph/adc.c index 9ff7268ff2..4d07a93364 100644 --- a/cpu/stm32f4/periph/adc.c +++ b/cpu/stm32f4/periph/adc.c @@ -99,7 +99,7 @@ int adc_sample(adc_t line, adc_res_t res) int sample; /* check if resolution is applicable */ - if (res < 0xff) { + if (res & 0xff) { return -1; }