From 9aa53fd140e4b7ef7eb0b7a4a0f904a415b02520 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 18 Jul 2025 14:22:43 -1000 Subject: [PATCH] preen --- .../bluetooth_proxy/bluetooth_connection.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/esphome/components/bluetooth_proxy/bluetooth_connection.h b/esphome/components/bluetooth_proxy/bluetooth_connection.h index 18e32f4402..4c4eff0919 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_connection.h +++ b/esphome/components/bluetooth_proxy/bluetooth_connection.h @@ -29,17 +29,7 @@ class BluetoothConnection : public esp32_ble_client::BLEClientBase { friend class BluetoothProxy; void send_service_for_discovery_(); - void reset_connection_() { - // Important: If we were in the middle of sending services, we do NOT send - // send_gatt_services_done() here. This ensures the client knows that - // the service discovery was interrupted and can retry. The client - // (aioesphomeapi) implements a 30-second timeout (DEFAULT_BLE_TIMEOUT) - // to detect incomplete service discovery rather than relying on us to - // tell them about a partial list. - this->set_address(0); - this->send_service_ = DONE_SENDING_SERVICES; - this->proxy_->send_connections_free(); - } + void reset_connection_(); // Memory optimized layout for 32-bit systems // Group 1: Pointers (4 bytes each, naturally aligned)