From 62ded364b713e4ac24c2c4ddda09bf99671b929d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Feb 2025 18:54:22 -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 ac4300b472..0c4d60494b 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 before 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 before 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 5b15435393..31193370bf 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; }