mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #10913 from leandrolanzieri/pr/drivers/sds011_saul_read_return
drivers/sds011: Fix error return value on SAUL driver
This commit is contained in:
commit
a1e91bd62e
@ -36,7 +36,7 @@ static int _read(const void *dev, phydat_t *res)
|
|||||||
res->scale = -7;
|
res->scale = -7;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
return ECANCELED;
|
return -ECANCELED;
|
||||||
}
|
}
|
||||||
|
|
||||||
const saul_driver_t sds011_saul_driver = {
|
const saul_driver_t sds011_saul_driver = {
|
||||||
|
Loading…
Reference in New Issue
Block a user