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 <vich@nordicsemi.no>
This commit is contained in:
parent
fbd8cff090
commit
b77b099bf9
1 changed files with 1 additions and 0 deletions
|
@ -2083,6 +2083,7 @@ static inline void ticker_job_compare_update(struct ticker_instance *instance,
|
|||
if (instance->ticker_id_head == TICKER_NULL) {
|
||||
if (cntr_stop() == 0) {
|
||||
instance->ticks_slot_previous = 0U;
|
||||
instance->ticks_current = cntr_cnt_get();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue