[riot-notifications] [RIOT-OS/RIOT] drivers/sds011: Fix error return value on SAUL driver (#10913)
notifications at github.com
Thu Jan 31 15:45:39 CET 2019
### Contribution description
The `read` function of a SAUL driver should return the number of values written into to result data structure [1-3], `-ENOTSUP` if the device does not support this operation or `-ECANCELED` on other errors.
This PR fixes the return value of the read function of the sds011 SAUL driver to `-ECANCELED` instead of `ECANCELED`.
### Testing procedure
Run the default SAUL application (`tests/saul`).
### Issues/PRs references
Examples: Fixes #1234. See also #5678. Depends on PR #9876.
Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* drivers/sds011: Fix SAUL read error return
-- File Changes --
M drivers/sds011/sds011_saul.c (2)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications