1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/stm32f4: fix periph/adc resolution check

This commit is contained in:
Kaspar Schleiser 2018-02-13 21:45:02 +01:00
parent b98227626d
commit 41dab11a8f

View File

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