Skip to content

Commit dd4f7c3

Browse files
yuxCairlubos
authored andcommitted
[nrf fromlist] samples: Bluetooth: use correct periodic advertising intervals
BT_GAP_ADV_SLOW_INT_MIN and BT_GAP_ADV_SLOW_INT_MAX represent 1s and 1.2s, respectively, in the extended advertising context, where the bit interval is 0.625 ms. Using them for periodic advertising will result in a range of [2s, 2.4s], as the bit interval for periodic advertising is 1.25ms. Instead, BT_GAP_PER_ADV_SLOW_INT_MIN and BT_GAP_PER_ADV_SLOW_INT_MAX should be used in this sample, and the range will become [1s, 1.2s]. Upstream PR: zephyrproject-rtos/zephyr#73418 Signed-off-by: Yuxuan Cai <yuxuan.cai@nordicsemi.no>
1 parent a1769ab commit dd4f7c3

File tree

1 file changed

+2
-2
lines changed
  • samples/bluetooth/direction_finding_connectionless_tx/src

1 file changed

+2
-2
lines changed

samples/bluetooth/direction_finding_connectionless_tx/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ static struct bt_le_ext_adv_start_param ext_adv_start_param = {
4242
};
4343

4444
static struct bt_le_per_adv_param per_adv_param = {
45-
.interval_min = BT_GAP_ADV_SLOW_INT_MIN,
46-
.interval_max = BT_GAP_ADV_SLOW_INT_MAX,
45+
.interval_min = BT_GAP_PER_ADV_SLOW_INT_MIN,
46+
.interval_max = BT_GAP_PER_ADV_SLOW_INT_MAX,
4747
.options = BT_LE_ADV_OPT_USE_TX_POWER,
4848
};
4949

0 commit comments

Comments
 (0)