lib: os: ring_buffer: Fix issues in rewinding
Two issues were found:
- subtracting rewinding value from head could result in negative value
- calling ring_buf_put_claim after tail got rewinded but before head
got rewinded resulted in error.
Signed-off-by:
Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
Loading
Please sign in to comment