modules: openthread: ble: Update after BT_LE_ADV_CONN got deprecated
This is a follow-up to commit 8cfad44852.
Replace the deprecated BT_LE_ADV_CONN macro with BT_LE_ADV_CONN_FAST_2.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
fa9126f5e8
commit
f930739acf
1 changed files with 1 additions and 1 deletions
|
|
@ -438,7 +438,7 @@ otError otPlatBleGapAdvStart(otInstance *aInstance, uint16_t aInterval)
|
|||
ARG_UNUSED(aInstance);
|
||||
ARG_UNUSED(aInterval);
|
||||
|
||||
int err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
|
||||
int err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_2, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
|
||||
|
||||
if (err != 0 && err != -EALREADY) {
|
||||
LOG_WRN("Advertising failed to start (err %d)", err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue