drivers/adcxx1c: fix phydat usage in saul wrapper
This commit is contained in:
parent
6cf48416e5
commit
2311cdda07
@ -26,7 +26,7 @@
|
||||
|
||||
static int read_adc(const void *dev, phydat_t *res)
|
||||
{
|
||||
if (adcxx1c_read_raw((const adcxx1c_t *)dev, res->val)) {
|
||||
if (adcxx1c_read_raw((const adcxx1c_t *)dev, &res->val[0])) {
|
||||
return -ECANCELED;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user