[riot-notifications] [RIOT-OS/RIOT] drivers/sds011: Fix error return value on SAUL driver (#10913)

Leandro Lanzieri 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:

  https://github.com/RIOT-OS/RIOT/pull/10913

-- Commit Summary --

  * drivers/sds011: Fix SAUL read error return

-- File Changes --

    M drivers/sds011/sds011_saul.c (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10913.patch
https://github.com/RIOT-OS/RIOT/pull/10913.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10913
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190131/de8ab106/attachment.html>


More information about the notifications mailing list