1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

drivers/adcxx1c: fix phydat usage in saul wrapper

This commit is contained in:
Vincent Dupont 2019-01-11 16:33:21 +01:00
parent 6cf48416e5
commit 2311cdda07

View File

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