mirror of
https://github.com/esphome/esphome.git
synced 2026-01-10 12:10:48 -07:00
[wifi] Disable SoftAP support on Arduino ESP32 when ap: not configured
This commit is contained in:
@@ -466,7 +466,7 @@ async def to_code(config):
|
|||||||
)
|
)
|
||||||
cg.add(var.set_ap_timeout(conf[CONF_AP_TIMEOUT]))
|
cg.add(var.set_ap_timeout(conf[CONF_AP_TIMEOUT]))
|
||||||
cg.add_define("USE_WIFI_AP")
|
cg.add_define("USE_WIFI_AP")
|
||||||
elif CORE.is_esp32 and not CORE.using_arduino:
|
elif CORE.is_esp32:
|
||||||
add_idf_sdkconfig_option("CONFIG_ESP_WIFI_SOFTAP_SUPPORT", False)
|
add_idf_sdkconfig_option("CONFIG_ESP_WIFI_SOFTAP_SUPPORT", False)
|
||||||
add_idf_sdkconfig_option("CONFIG_LWIP_DHCPS", False)
|
add_idf_sdkconfig_option("CONFIG_LWIP_DHCPS", False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user