From f930739acf8586e9e27ebf20bbe4df6189d348d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Mon, 20 Jan 2025 11:52:42 +0100 Subject: [PATCH] modules: openthread: ble: Update after BT_LE_ADV_CONN got deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow-up to commit 8cfad44852845cd30336d40f61dade69ab4357db. Replace the deprecated BT_LE_ADV_CONN macro with BT_LE_ADV_CONN_FAST_2. Signed-off-by: Andrzej Głąbek --- modules/openthread/platform/ble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openthread/platform/ble.c b/modules/openthread/platform/ble.c index 4da858081ae..c5095fbf4e1 100644 --- a/modules/openthread/platform/ble.c +++ b/modules/openthread/platform/ble.c @@ -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);