Skip to content

Commit ff39065

Browse files
cvinayakjhedberg
authored andcommitted
Bluetooth: controller: Fix ticker ticks_current value
Update the ticks_current value on last stopped ticker instance, so that when a new ticker instance is started the anchor ticks calculation uses the correct current tick with respect to supplied anchor ticks. Fixes #23805. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 1b253c2 commit ff39065

File tree

1 file changed

+1
-0
lines changed
  • subsys/bluetooth/controller/ticker

1 file changed

+1
-0
lines changed

subsys/bluetooth/controller/ticker/ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,6 +2096,7 @@ static inline void ticker_job_compare_update(struct ticker_instance *instance,
20962096
if (instance->ticker_id_head == TICKER_NULL) {
20972097
if (cntr_stop() == 0) {
20982098
instance->ticks_slot_previous = 0U;
2099+
instance->ticks_current = cntr_cnt_get();
20992100
}
21002101
return;
21012102
}

0 commit comments

Comments
 (0)