Skip to content
Commit 5f63fff9 authored by Andy Sinclair's avatar Andy Sinclair Committed by Carles Cufí
Browse files

sys: linear_range: fix return value when window is outside range



linear_range_get_win_index does not behave correctly when the
window of values is above the linear range.  It reports
-ERANGE (partial intersection) instead of -EINVAL.

Extra conditions added for edge cases and tests cases updated.

Signed-off-by: default avatarAndy Sinclair <andy.sinclair@nordicsemi.no>
parent 3c0c9aca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment