mirror of https://github.com/ARMmbed/mbed-os.git
Add fix for non-compiling analog in C API when median filtering is disabled.
parent
1cfac4cec4
commit
7fba5bae39
|
@ -180,7 +180,7 @@ static inline uint32_t adc_read_u32(analogin_t *obj) {
|
||||||
order(&v1, &v2);
|
order(&v1, &v2);
|
||||||
value = v2;
|
value = v2;
|
||||||
#else
|
#else
|
||||||
value = adc_read(adc);
|
value = adc_read(obj);
|
||||||
#endif
|
#endif
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue