mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(openthread): fix build failure in spinel-only mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -76,3 +76,15 @@
|
||||
#ifndef OPENTHREAD_SPINEL_CONFIG_COPROCESSOR_RESET_FAILURE_CALLBACK_ENABLE
|
||||
#define OPENTHREAD_SPINEL_CONFIG_COPROCESSOR_RESET_FAILURE_CALLBACK_ENABLE 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
*
|
||||
* In spinel-only mode no Instance object is compiled or instantiated, so the
|
||||
* single-instance path (Instance::Get().GetLogLevel()) is unavailable. Enabling
|
||||
* multiple-instance support forces the logging APIs to use the global log level
|
||||
* (Instance::GetGlobalLogLevel()), which does not depend on an Instance object.
|
||||
*/
|
||||
#ifndef OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
#define OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE 1
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user