10000 Release memory from CLASSIC_BT when not enabled · exocode/esp32-snippets@bd24fab · GitHub
[go: up one dir, main page]

Skip to content

Commit bd24fab

Browse files
committed
Release memory from CLASSIC_BT when not enabled
1 parent 8f106d7 commit bd24fab

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cpp_utils/BLEDevice.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,7 @@ BLEAdvertising* BLEDevice::m_bleAdvertising = nullptr;
354354
}
355355

356356
#ifndef CLASSIC_BT_ENABLED
357-
// esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT); //FIXME waiting for response from esp-idf issue
358-
errRc = esp_bt_controller_enable(ESP_BT_MODE_BLE);
359-
//errRc = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
360-
if (errRc != ESP_OK) {
361-
ESP_LOGE(LOG_TAG, "esp_bt_controller_enable: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
362-
return;
363-
}
357+
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
364358
#else
365359
errRc = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
366360
if (errRc != ESP_OK) {

0 commit comments

Comments
 (0)
0