From a10dac936c49236a22a860ac61baaef357f75d37 Mon Sep 17 00:00:00 2001 From: baohongde Date: Mon, 1 Mar 2021 14:50:49 +0800 Subject: [PATCH] components/bt: Fix crash in Bluetooth when esp_restart --- components/bt/bt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index 8d64e06841..6bf353e63e 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1511,16 +1511,13 @@ esp_err_t esp_bt_controller_deinit(void) static void bt_shutdown(void) { esp_err_t ret = ESP_OK; - ESP_LOGD(BTDM_LOG_TAG, "stop/deinit bt"); + ESP_LOGD(BTDM_LOG_TAG, "stop Bluetooth"); ret = esp_bt_controller_disable(); if (ESP_OK != ret) { ESP_LOGW(BTDM_LOG_TAG, "controller disable ret=%d", ret); } ret = esp_bt_controller_deinit(); - if (ESP_OK != ret) { - ESP_LOGW(BTDM_LOG_TAG, "controller deinit ret=%d", ret); - } return; }