From 370c87536d0782426df005c8978886296cf781e1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Feb 2025 18:55:17 -0600 Subject: [PATCH] preen --- esphome/components/esp32_ble_client/ble_client_base.cpp | 8 ++++---- esphome/components/esp32_ble_client/ble_client_base.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/esphome/components/esp32_ble_client/ble_client_base.cpp b/esphome/components/esp32_ble_client/ble_client_base.cpp index f2b7e4ac5a..3916fff6ef 100644 --- a/esphome/components/esp32_ble_client/ble_client_base.cpp +++ b/esphome/components/esp32_ble_client/ble_client_base.cpp @@ -130,10 +130,10 @@ void BLEClientBase::disconnect() { this->set_state(espbt::ClientState::DISCONNECTING); return; } - this->_unconditional_disconnect_(); + this->unconditional_disconnect(); } -void BLEClientBase::_unconditional_disconnect_() { +void BLEClientBase::unconditional_disconnect() { // Disconnect without checking the state. ESP_LOGI(TAG, "[%d] [%s] Disconnecting.", this->connection_index_, this->address_str_.c_str()); if (this->conn_id_ == UNSET_CONN_ID) { @@ -209,7 +209,7 @@ bool BLEClientBase::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_ // Disconnect was requested after connecting started, // but before the connection was established. Now that we have // this->conn_id_ set, we can disconnect it. - this->_unconditional_disconnect_(); + this->unconditional_disconnect(); this->conn_id_ = UNSET_CONN_ID; break; } @@ -236,7 +236,7 @@ bool BLEClientBase::gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_ // Disconnect was requested after connecting started, // but before the connection was established. Now that we have // this->conn_id_ set, we can disconnect it. - this->_unconditional_disconnect_(); + this->unconditional_disconnect(); this->conn_id_ = UNSET_CONN_ID; } break; diff --git a/esphome/components/esp32_ble_client/ble_client_base.h b/esphome/components/esp32_ble_client/ble_client_base.h index 31193370bf..89ac04e38c 100644 --- a/esphome/components/esp32_ble_client/ble_client_base.h +++ b/esphome/components/esp32_ble_client/ble_client_base.h @@ -39,7 +39,7 @@ class BLEClientBase : public espbt::ESPBTClient, public Component { void connect() override; esp_err_t pair(); void disconnect() override; - void _unconditional_disconnect_(); + void unconditional_disconnect(); void release_services(); bool connected() { return this->state_ == espbt::ClientState::ESTABLISHED; }