From 364ec93d1301db9516b64e1ca494ff2c12d1ceea Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Thu, 17 Oct 2024 00:55:15 +0200 Subject: [PATCH] nimble/ll: Fix calculating BIG scheduler start time The same code is executed already in big_sched_set resulting in sched offset being subtracted twice. --- nimble/controller/src/ble_ll_iso_big.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nimble/controller/src/ble_ll_iso_big.c b/nimble/controller/src/ble_ll_iso_big.c index 19af3e61fd..5109a6b6b4 100644 --- a/nimble/controller/src/ble_ll_iso_big.c +++ b/nimble/controller/src/ble_ll_iso_big.c @@ -573,10 +573,6 @@ ble_ll_iso_big_event_done(struct ble_ll_iso_big *big) big->anchor_offset++; big_sched_set(big); - big->sch.end_time = big->sch.start_time + - ble_ll_tmr_u2t_up(big->sync_delay) + 1; - big->sch.start_time -= g_ble_ll_sched_offset_ticks; - /* XXX this should always succeed since we preempt anything for now */ rc = ble_ll_sched_iso_big(&big->sch, 0, 0); assert(rc == 0);