From 9f0051c21ff196bbbcecb2b00014e563f57600a0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 11 Jun 2025 11:17:10 -0500 Subject: [PATCH] cleanup --- esphome/components/esp32_ble/ble.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/esp32_ble/ble.cpp b/esphome/components/esp32_ble/ble.cpp index d8e1a8afc6..1727b308bc 100644 --- a/esphome/components/esp32_ble/ble.cpp +++ b/esphome/components/esp32_ble/ble.cpp @@ -327,6 +327,7 @@ void ESP32BLE::loop() { gap_event == ESP_GAP_BLE_SCAN_STOP_COMPLETE_EVT) { // All three scan complete events have the same structure with just status // Cast is safe because all three ESP-IDF event structures are identical with just status field + // The scan_complete struct already contains our copy of the status (copied in BLEEvent constructor) this->real_gap_event_handler_(gap_event, (esp_ble_gap_cb_param_t *) &ble_event->event_.gap.scan_complete); } else { // Unexpected GAP event - drop it