From b54ef13faeec37c4a7290a4d1abde2fd689fa8cb Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Tue, 10 Oct 2017 15:35:17 +0800 Subject: [PATCH] component/bt : allow init after de-init --- components/bt/bt.c | 2 +- components/bt/include/bt.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index 12e1d44074..140877d33a 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -467,7 +467,7 @@ esp_err_t esp_bt_controller_deinit(void) return ESP_ERR_NO_MEM; } - btdm_controller_status = ESP_BT_CONTROLLER_STATUS_SHUTDOWN; + btdm_controller_status = ESP_BT_CONTROLLER_STATUS_IDLE; return ESP_OK; } diff --git a/components/bt/include/bt.h b/components/bt/include/bt.h index 9976960442..717218bd48 100644 --- a/components/bt/include/bt.h +++ b/components/bt/include/bt.h @@ -78,7 +78,6 @@ typedef enum { ESP_BT_CONTROLLER_STATUS_IDLE = 0, ESP_BT_CONTROLLER_STATUS_INITED, ESP_BT_CONTROLLER_STATUS_ENABLED, - ESP_BT_CONTROLLER_STATUS_SHUTDOWN, ESP_BT_CONTROLLER_STATUS_NUM, } esp_bt_controller_status_t;