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;
|
||||
return 2;
|
||||
}
|
||||
return ECANCELED;
|
||||
return -ECANCELED;
|
||||
}
|
||||
|
||||
const saul_driver_t sds011_saul_driver = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user