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:
parent
b98227626d
commit
41dab11a8f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user