1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-19 11:42:20 +01:00

[esp32_ble] Conditionally compile BLE advertising to reduce flash usage (#10099)

This commit is contained in:
J. Nick Koston
2025-08-06 14:29:24 -10:00
committed by GitHub
parent 325ec0a0ae
commit ee1d4f27ef
8 changed files with 38 additions and 7 deletions

View File

@@ -571,6 +571,7 @@ async def to_code(config):
config[CONF_ON_DISCONNECT],
)
cg.add_define("USE_ESP32_BLE_SERVER")
cg.add_define("USE_ESP32_BLE_ADVERTISING")
if CORE.using_esp_idf:
add_idf_sdkconfig_option("CONFIG_BT_ENABLED", True)