From 1e775861204f62d534ac0a4964531509a9ff7461 Mon Sep 17 00:00:00 2001 From: baohongde Date: Mon, 1 Mar 2021 14:39:35 +0800 Subject: [PATCH] components/bt: Fix crash in Bluetooth when esp_restart --- components/bt/controller/esp32/bt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/bt/controller/esp32/bt.c b/components/bt/controller/esp32/bt.c index afe291c607..2ce1fcec6f 100644 --- a/components/bt/controller/esp32/bt.c +++ b/components/bt/controller/esp32/bt.c @@ -1442,16 +1442,12 @@ 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; }