Commit 00055d1a authored by Luis Ubieda's avatar Luis Ubieda Committed by Fabio Baltieri
Browse files

afbr-s50: Add graceful error-handling on data-ready



Whenever the data-ready callback is invoked, there's a common pattern
that needs to take place:

- Stop measurement timer (to stop on-coming samples), which could be
restored by the application re-submitting the request.
- Set iodev_sqe to NULL, so new requests can come in.
- Report the error on the SQE.

This has been refactored in handle_error_on_result() and now it's
invoked throughout the code.

Signed-off-by: default avatarLuis Ubieda <luisf@croxel.com>
parent ab670814
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment