Skip to content

Commit

Permalink
caf: Replace deprecated BT_LE_ADV_* macros with their equivalents
Browse files Browse the repository at this point in the history
Change:
- `BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_ONE_TIME`
  to `BT_LE_ADV_OPT_CONN`

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl committed Jan 15, 2025
1 parent 97237d8 commit c45f4a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/caf/modules/ble_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static int setup_accept_list(uint8_t local_id)
static int ble_adv_start_undirected(void)
{
struct bt_le_adv_param adv_param = {
.options = BT_LE_ADV_OPT_CONNECTABLE | BT_LE_ADV_OPT_ONE_TIME,
.options = BT_LE_ADV_OPT_CONN,
};

__ASSERT_NO_MSG((state == STATE_ACTIVE) || (state == STATE_GRACE_PERIOD));
Expand Down

0 comments on commit c45f4a1

Please sign in to comment.