Skip to content

Commit 2010fd1

Browse files
committed
Bluetooth: controller: remove warning about defined bvt unused function
Remove compilation warning about adv_sync_pdu_ad_data_set function that is defined but not used. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 7401991 commit 2010fd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv_sync.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ static uint8_t adv_sync_pdu_init_from_prev_pdu(struct pdu_adv *pdu,
238238
return 0;
239239
}
240240

241-
static uint8_t adv_sync_pdu_ad_data_set(struct pdu_adv *pdu,
242-
const uint8_t *data, uint8_t len)
241+
/* Note: Function made global because it is temporarily not used and causes compilation warning.
242+
* It will be used when fragmentation of periodic advertising PDU is implemented.
243+
*/
244+
uint8_t adv_sync_pdu_ad_data_set(struct pdu_adv *pdu, const uint8_t *data, uint8_t len)
243245
{
244246
struct pdu_adv_com_ext_adv *com_hdr;
245247
uint8_t len_max;

0 commit comments

Comments
 (0)