1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Update esphome/components/esp32_ble/ble.cpp

This commit is contained in:
J. Nick Koston
2025-06-14 23:49:38 -05:00
committed by GitHub
parent b1847d5e98
commit 4cea7f0237

View File

@@ -370,7 +370,7 @@ void ESP32BLE::loop() {
template<typename... Args> 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;
}