mirror of
https://github.com/esphome/esphome.git
synced 2025-07-28 14:16:40 +00:00
Disable WiFi when using Ethernet to save memory (#9456)
This commit is contained in:
parent
dd5ba5a90c
commit
634aa55364
@ -342,5 +342,11 @@ async def to_code(config):
|
|||||||
|
|
||||||
cg.add_define("USE_ETHERNET")
|
cg.add_define("USE_ETHERNET")
|
||||||
|
|
||||||
|
# Disable WiFi when using Ethernet to save memory
|
||||||
|
if CORE.using_esp_idf:
|
||||||
|
add_idf_sdkconfig_option("CONFIG_ESP_WIFI_ENABLED", False)
|
||||||
|
# Also disable WiFi/BT coexistence since WiFi is disabled
|
||||||
|
add_idf_sdkconfig_option("CONFIG_SW_COEXIST_ENABLE", False)
|
||||||
|
|
||||||
if CORE.using_arduino:
|
if CORE.using_arduino:
|
||||||
cg.add_library("WiFi", None)
|
cg.add_library("WiFi", None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user