Skip to content
Snippets Groups Projects
Unverified Commit a1e91bd6 authored by MichelRottleuthner's avatar MichelRottleuthner Committed by GitHub
Browse files

Merge pull request #10913 from leandrolanzieri/pr/drivers/sds011_saul_read_return

drivers/sds011: Fix error return value on SAUL driver
parents 805efb69 af7220c2
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ static int _read(const void *dev, phydat_t *res) ...@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment