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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user