1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #8555 from kaspar030/stm32f4_fix_adc_res

cpu/stm32f4: fix periph/adc resolution check
This commit is contained in:
Peter Kietzmann 2018-02-19 10:05:18 +01:00 committed by GitHub
commit e853c7534f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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