Skip to content

Commit f7a1def

Browse files
committed
bluetooth: samples: Replace BT_LE_ADV_OPT_CONN->BIT(0) | BIT(1)
1 parent 5b8148d commit f7a1def

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/bluetooth/channel_sounding/src/connected_cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ int main(void)
327327
return 0;
328328
}
329329
} else {
330-
err = bt_le_adv_start(BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN, BT_GAP_ADV_FAST_INT_MIN_1,
330+
err = bt_le_adv_start(BT_LE_ADV_PARAM(BIT(0) | BIT(1), BT_GAP_ADV_FAST_INT_MIN_1,
331331
BT_GAP_ADV_FAST_INT_MAX_1, NULL),
332332
ad, ARRAY_SIZE(ad), NULL, 0);
333333
if (err) {

samples/bluetooth/channel_sounding/src/cs_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ int main(void)
393393
return 0;
394394
}
395395
} else {
396-
err = bt_le_adv_start(BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN,
396+
err = bt_le_adv_start(BT_LE_ADV_PARAM(BIT(0) | BIT(1),
397397
BT_GAP_ADV_FAST_INT_MIN_1,
398398
BT_GAP_ADV_FAST_INT_MAX_1, NULL),
399399
ad, ARRAY_SIZE(ad), NULL, 0);

0 commit comments

Comments
 (0)