Skip to content

Commit

Permalink
Bluetooth: Controller: Fix ticks_slot_id_previous reset on ticker yield
Browse files Browse the repository at this point in the history
Fix implementation to not reset the ticks_slot_id_previous
when ticker yields its reserved slot, only reset if ticker
was stopped.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak authored and carlescufi committed Sep 26, 2022
1 parent 245b1e0 commit 744e5f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subsys/bluetooth/controller/ticker/ticker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,9 @@ static inline void ticker_job_node_manage(struct ticker_instance *instance,
uint32_t ticks_at_yield;
uint32_t ticks_used;

instance->ticker_id_slot_previous = TICKER_NULL;
if (user_op->op != TICKER_USER_OP_TYPE_YIELD_ABS) {
instance->ticker_id_slot_previous = TICKER_NULL;
}

if ((user_op->op == TICKER_USER_OP_TYPE_YIELD_ABS) ||
(user_op->op == TICKER_USER_OP_TYPE_STOP_ABS)) {
Expand Down

0 comments on commit 744e5f4

Please sign in to comment.