1
0
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:
MichelRottleuthner 2019-01-31 16:20:12 +01:00 committed by GitHub
commit a1e91bd62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {