mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
upgrade logging
This commit is contained in:
parent
370c87536d
commit
8a5e8a65c6
@ -143,7 +143,10 @@ void BLEClientBase::unconditional_disconnect() {
|
|||||||
}
|
}
|
||||||
auto err = esp_ble_gattc_close(this->gattc_if_, this->conn_id_);
|
auto err = esp_ble_gattc_close(this->gattc_if_, this->conn_id_);
|
||||||
if (err != ESP_OK) {
|
if (err != ESP_OK) {
|
||||||
ESP_LOGW(TAG, "[%d] [%s] esp_ble_gattc_close error, err=%d", this->connection_index_, this->address_str_.c_str(),
|
// This is a fatal error, we can't do anything about it.
|
||||||
|
// 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);
|
err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user