Bluetooth: shell: host: add missing conditional compile
There was a conditional compile misssing for the BT_PER_ADV_SYNC_TRANSFER_SENDER, potentially leading to build failures Signed-off-by: Andries Kruithof <andries.kruithof@nordicsemi.no>
This commit is contained in:
parent
29ab2b13f6
commit
2a34ecf858
2 changed files with 11 additions and 6 deletions
|
@ -163,7 +163,7 @@ static void bap_broadcast_assistant_recv_state_cb(
|
|||
}
|
||||
}
|
||||
|
||||
if (per_adv_sync) {
|
||||
if (per_adv_sync && IS_ENABLED(CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER)) {
|
||||
shell_print(ctx_shell, "Sending PAST");
|
||||
|
||||
err = bt_le_per_adv_sync_transfer(per_adv_sync,
|
||||
|
@ -202,7 +202,8 @@ static void bap_broadcast_assistant_recv_state_cb(
|
|||
}
|
||||
}
|
||||
|
||||
if (ext_adv != NULL && IS_ENABLED(CONFIG_BT_PER_ADV)) {
|
||||
if (ext_adv != NULL && IS_ENABLED(CONFIG_BT_PER_ADV) &&
|
||||
IS_ENABLED(CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER)) {
|
||||
shell_print(ctx_shell, "Sending local PAST");
|
||||
|
||||
err = bt_le_per_adv_set_info_transfer(ext_adv, conn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue