diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c b/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c index e1de65844acb61..c09c1b52d4c6e7 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c @@ -1060,6 +1060,7 @@ static void mfy_aux_offset_get(void *param) uint32_t volatile ret_cb; uint32_t ticks_previous; uint32_t ret; + bool success; ticks_previous = ticks_current; @@ -1076,7 +1077,8 @@ static void mfy_aux_offset_get(void *param) } } - LL_ASSERT(ret_cb == TICKER_STATUS_SUCCESS); + success = (ret_cb == TICKER_STATUS_SUCCESS); + LL_ASSERT(success); LL_ASSERT((ticks_current == ticks_previous) || retry--); diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c b/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c index 4598ec50d21c51..a268b574066104 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c @@ -907,6 +907,7 @@ static void mfy_sync_offset_get(void *param) uint32_t volatile ret_cb; uint32_t ticks_previous; uint32_t ret; + bool success; ticks_previous = ticks_current; @@ -923,7 +924,8 @@ static void mfy_sync_offset_get(void *param) } } - LL_ASSERT(ret_cb == TICKER_STATUS_SUCCESS); + success = (ret_cb == TICKER_STATUS_SUCCESS); + LL_ASSERT(success); LL_ASSERT((ticks_current == ticks_previous) || retry--);