Skip to content

Commit 18473ff

Browse files
committed
Corrected CLASSIC_BT_ENABLED to CONFIG_BT_CLASSIC_ENABLED.
1 parent 65eafd1 commit 18473ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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)