From f80aeb1d1d6ca4a5abdb6d6fc7abf432487b78b4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 16 Jun 2025 15:10:27 +0200 Subject: [PATCH] cleanup --- esphome/components/esp32_ble/ble.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/esphome/components/esp32_ble/ble.cpp b/esphome/components/esp32_ble/ble.cpp index b2328828ac..1f075b1718 100644 --- a/esphome/components/esp32_ble/ble.cpp +++ b/esphome/components/esp32_ble/ble.cpp @@ -407,12 +407,8 @@ template void enqueue_ble_event(Args... args) { load_ble_event(event, args...); // Push the event to the queue - if (!global_ble->ble_events_.push(event)) { - // This should not happen in SPSC queue with single producer - ESP_LOGE(TAG, "BLE queue push failed unexpectedly"); - // Return to pool - global_ble->ble_event_pool_.release(event); - } + global_ble->ble_events_.push(event); + // Push always succeeds: we checked full() above and we're the only producer } // Explicit template instantiations for the friend function