1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-08 22:32:21 +01:00

[bluetooth_proxy] Remove unnecessary heap allocation for response object (#10104)

This commit is contained in:
J. Nick Koston
2025-08-06 15:42:04 -10:00
committed by GitHub
parent 6d66ddd68d
commit 61008bc8a9
2 changed files with 5 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ class BluetoothProxy : public esp32_ble_tracker::ESPBTDeviceListener, public Com
// BLE advertisement batching
std::vector<api::BluetoothLERawAdvertisement> advertisement_pool_;
std::unique_ptr<api::BluetoothLERawAdvertisementsResponse> response_;
api::BluetoothLERawAdvertisementsResponse response_;
// Group 3: 4-byte types
uint32_t last_advertisement_flush_time_{0};