component/bt : fix bluetooth controller enable limit && release memory when de-initialize bluetooth controller

1. fix bluetooth controller enable limit
2. release memory when de-initialize bluetooth controller
3. fix heap_caps_add_region limit
This commit is contained in:
Tian Hao
2017-09-12 22:36:17 +08:00
parent e32c8be6bf
commit b54719d00f
6 changed files with 53 additions and 14 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ void app_main()
return;
}
if (esp_bt_controller_enable(ESP_BT_MODE_BTDM) != ESP_OK) {
if (esp_bt_controller_enable(ESP_BT_MODE_CLASSIC_BT) != ESP_OK) {
ESP_LOGE(BT_AV_TAG, "%s enable controller failed\n", __func__);
return;
}