Skip to content

Commit 94a3f5c

Browse files
committed
[nrf fromlist] modules: openthread: ble: Update after BT_LE_ADV_CONN got deprecated
This is a follow-up to commit 8cfad44. Replace the deprecated BT_LE_ADV_CONN macro with BT_LE_ADV_CONN_FAST_2. Upstream PR #: 84325 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 98a8531 commit 94a3f5c

File tree

1 file changed

+1
-1
lines changed
  • modules/openthread/platform

1 file changed

+1
-1
lines changed

modules/openthread/platform/ble.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ otError otPlatBleGapAdvStart(otInstance *aInstance, uint16_t aInterval)
438438
ARG_UNUSED(aInstance);
439439
ARG_UNUSED(aInterval);
440440

441-
int err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
441+
int err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_2, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));
442442

443443
if (err != 0 && err != -EALREADY) {
444444
LOG_WRN("Advertising failed to start (err %d)", err);

0 commit comments

Comments
 (0)