From 667ac172dfd7052eb5e08c2f1376cc076dd40ea2 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Fri, 24 Feb 2017 20:39:41 +0800 Subject: [PATCH] component/bt: modify the init/deinit function --- components/bt/bluedroid/btc/core/btc_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/bt/bluedroid/btc/core/btc_main.c b/components/bt/bluedroid/btc/core/btc_main.c index d4c98dffe..96a7927ba 100644 --- a/components/bt/bluedroid/btc/core/btc_main.c +++ b/components/bt/bluedroid/btc/core/btc_main.c @@ -16,6 +16,7 @@ #include "btc_main.h" #include "future.h" #include "esp_err.h" +#include "btif_config.h" static future_t *main_future[BTC_MAIN_FUTURE_NUM]; @@ -60,6 +61,7 @@ void btc_init_callback(void) static void btc_init_bluetooth(void) { + btif_config_init(); bte_main_boot_entry(btc_init_callback); } @@ -67,6 +69,7 @@ static void btc_init_bluetooth(void) static void btc_deinit_bluetooth(void) { bte_main_shutdown(); + btif_config_clean_up(); future_ready(*btc_main_get_future_p(BTC_MAIN_DEINIT_FUTURE), FUTURE_SUCCESS); }