diff --git a/drivers/adcxx1c/adcxx1c_saul.c b/drivers/adcxx1c/adcxx1c_saul.c index 314c6babab..5104979db3 100644 --- a/drivers/adcxx1c/adcxx1c_saul.c +++ b/drivers/adcxx1c/adcxx1c_saul.c @@ -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; }