From 663ef536c862fbd3011b81904cc8c1734bf96191 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 22 Feb 2025 12:40:03 -0600 Subject: [PATCH] upgrade logging --- esphome/components/esp32_ble_client/ble_client_base.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esphome/components/esp32_ble_client/ble_client_base.cpp b/esphome/components/esp32_ble_client/ble_client_base.cpp index 45b3ed54a0..9ef41a576f 100644 --- a/esphome/components/esp32_ble_client/ble_client_base.cpp +++ b/esphome/components/esp32_ble_client/ble_client_base.cpp @@ -143,9 +143,13 @@ void BLEClientBase::unconditional_disconnect() { } auto err = esp_ble_gattc_close(this->gattc_if_, this->conn_id_); if (err != ESP_OK) { - // This is a fatal error, we can't do anything about it. + // + // This is a fatal error, but we can't do anything about it + // and it likely means the BLE stack is in a bad state. + // // In the future we might consider App.reboot() here since // the BLE stack is in an indeterminate state. + // ESP_LOGE(TAG, "[%d] [%s] esp_ble_gattc_close error, err=%d", this->connection_index_, this->address_str_.c_str(), err); }