From cb748bbb02da3fdcf80952f744437c87f65e49ff Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 May 2025 03:32:57 -0500 Subject: [PATCH] preen --- esphome/components/bluetooth_proxy/bluetooth_proxy.cpp | 5 ----- esphome/components/esp32_ble_tracker/esp32_ble_tracker.h | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index f646d54b9f..c4ad80f0d8 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -567,11 +567,6 @@ void BluetoothProxy::unsubscribe_api_connection(api::APIConnection *api_connecti return; } - // Flush any pending advertisements before unsubscribing - if (this->raw_advertisements_) { - this->flush_pending_advertisements(); - } - this->api_connection_ = nullptr; this->raw_advertisements_ = false; this->parent_->recalculate_advertisement_parser_types(); diff --git a/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h b/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h index 3f83dc2b49..eea73a7d26 100644 --- a/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h +++ b/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h @@ -290,7 +290,7 @@ class ESP32BLETracker : public Component, #ifdef USE_PSRAM const static u_int8_t SCAN_RESULT_BUFFER_SIZE = 32; #else - const static u_int8_t SCAN_RESULT_BUFFER_SIZE = 24; + const static u_int8_t SCAN_RESULT_BUFFER_SIZE = 20; #endif // USE_PSRAM esp_ble_gap_cb_param_t::ble_scan_result_evt_param *scan_result_buffer_; esp_bt_status_t scan_start_failed_{ESP_BT_STATUS_SUCCESS};