mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/fix_an_ot_config_error_v5.4' into 'release/v5.4'
fix(openthread): fix a macro error (v5.4) See merge request espressif/esp-idf!46080
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -82,7 +82,7 @@ static void handle_ot_netdata_change(void)
|
|||||||
|
|
||||||
static void handle_ot_role_change(otInstance* instance)
|
static void handle_ot_role_change(otInstance* instance)
|
||||||
{
|
{
|
||||||
#if ((CONFIG_ESP_COEX_SW_COEXIST_ENABLE || CONFIG_EXTERNAL_COEX_ENABLE) && OPENTHREAD_RADIO_NATIVE)
|
#if ((CONFIG_ESP_COEX_SW_COEXIST_ENABLE || CONFIG_EXTERNAL_COEX_ENABLE) && CONFIG_OPENTHREAD_RADIO_NATIVE)
|
||||||
otLinkModeConfig linkmode = otThreadGetLinkMode(instance);
|
otLinkModeConfig linkmode = otThreadGetLinkMode(instance);
|
||||||
esp_ieee802154_coex_config_t config = esp_openthread_get_coex_config();
|
esp_ieee802154_coex_config_t config = esp_openthread_get_coex_config();
|
||||||
config.txrx = (linkmode.mRxOnWhenIdle) ? IEEE802154_LOW : IEEE802154_MIDDLE;
|
config.txrx = (linkmode.mRxOnWhenIdle) ? IEEE802154_LOW : IEEE802154_MIDDLE;
|
||||||
|
|||||||
Reference in New Issue
Block a user