1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-15 00:03:51 +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

@@ -1,6 +1,7 @@
#include "ble_advertising.h"
#ifdef USE_ESP32
#ifdef USE_ESP32_BLE_ADVERTISING
#include <cstdio>
#include <cstring>
@@ -161,4 +162,5 @@ void BLEAdvertising::register_raw_advertisement_callback(std::function<void(bool
} // namespace esphome::esp32_ble
#endif
#endif // USE_ESP32_BLE_ADVERTISING
#endif // USE_ESP32