Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: CSIP: Fix off-by-one in in lock restore
If the lock request was rejected by a set member we should restore any previously written logs in reverse order. However there was a off-by-one error in csip_set_coordinator_write_lock_cb which caused us to attempt to release member[1] instead of member[0] if member[1] was the one that rejected the lock request. Additionally, the lock_set_complete would be called prematurely before we get the response from the restore request. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
- Loading branch information