mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(openthread): optimized the autostart macro
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
set(srcs "")
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTER_AUTO_START)
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTER AND CONFIG_OPENTHREAD_NETWORK_AUTO_START)
|
||||
list(APPEND srcs "ot_examples_br.c")
|
||||
endif()
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
menu "OpenThread Border Router Config"
|
||||
depends on OPENTHREAD_BORDER_ROUTER
|
||||
|
||||
config OPENTHREAD_BORDER_ROUTER_AUTO_START
|
||||
depends on OPENTHREAD_BORDER_ROUTER
|
||||
bool 'Enable the border router auto start'
|
||||
default n
|
||||
help
|
||||
If enabled, the program will automatically connect to the backbone network and
|
||||
initialize the border router at startup.
|
||||
|
||||
endmenu
|
||||
Reference in New Issue
Block a user