mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
drivers/sds011: Fix SAUL read error return
This commit is contained in:
parent
805efb69c5
commit
af7220c2be
@ -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