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:
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…
Reference in New Issue
Block a user