Skip to content

Commit c5a1f3e

Browse files
authored
Corrected CLASSIC_BT_ENABLED to CONFIG_BT_CLASSIC_ENABLED. (#5471)
CLASSIC_BT_ENABLED never worked as was incorrectly named, e.g. see nkolban/esp32-snippets#890 (comment) Now corrected to the update-to-date name CONFIG_BT_CLASSIC_ENABLED.
1 parent 9406f8e commit c5a1f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/BLE/src/BLEDevice.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr;
347347
return;
348348
}
349349

350-
#ifndef CLASSIC_BT_ENABLED
350+
#ifndef CONFIG_BT_CLASSIC_ENABLED
351351
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
352352
#endif
353353
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
@@ -357,7 +357,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr;
357357
return;
358358
}
359359

360-
#ifndef CLASSIC_BT_ENABLED
360+
#ifndef CONFIG_BT_CLASSIC_ENABLED
361361
errRc = esp_bt_controller_enable(ESP_BT_MODE_BLE);
362362
if (errRc != ESP_OK) {
363363
log_e("esp_bt_controller_enable: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));

0 commit comments

Comments
 (0)