From 2311cdda0784ced3de02a31222dbaef6f6a6d4ec Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Fri, 11 Jan 2019 16:33:21 +0100 Subject: [PATCH] drivers/adcxx1c: fix phydat usage in saul wrapper --- drivers/adcxx1c/adcxx1c_saul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }