From 4cea7f02374fa1dc5b431691c7584021e954a248 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 14 Jun 2025 23:49:38 -0500 Subject: [PATCH] Update esphome/components/esp32_ble/ble.cpp --- esphome/components/esp32_ble/ble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/esp32_ble/ble.cpp b/esphome/components/esp32_ble/ble.cpp index 3ff2577bd5..a3bd1f82e5 100644 --- a/esphome/components/esp32_ble/ble.cpp +++ b/esphome/components/esp32_ble/ble.cpp @@ -370,7 +370,7 @@ void ESP32BLE::loop() { template void enqueue_ble_event(Args... args) { // Check if buffer is full before allocating - if (global_ble->ble_events_.size() >= (SCAN_RESULT_BUFFER_SIZE * 2 - 1)) { + if (global_ble->ble_events_.size() >= MAX_BLE_QUEUE_SIZE) { // Buffer is full, push will fail and increment dropped count internally return; }