Corrected CLASSIC_BT_ENABLED to CONFIG_BT_CLASSIC_ENABLED. (#5471)
CLASSIC_BT_ENABLED never worked as was incorrectly named, e.g. see https://github.com/nkolban/esp32-snippets/issues/890#issuecomment-521520934 Now corrected to the update-to-date name CONFIG_BT_CLASSIC_ENABLED.
This commit is contained in:
parent
9406f8e464
commit
c5a1f3efd7
@ -347,7 +347,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CLASSIC_BT_ENABLED
|
#ifndef CONFIG_BT_CLASSIC_ENABLED
|
||||||
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
|
esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
|
||||||
#endif
|
#endif
|
||||||
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
|
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
|
||||||
@ -357,7 +357,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CLASSIC_BT_ENABLED
|
#ifndef CONFIG_BT_CLASSIC_ENABLED
|
||||||
errRc = esp_bt_controller_enable(ESP_BT_MODE_BLE);
|
errRc = esp_bt_controller_enable(ESP_BT_MODE_BLE);
|
||||||
if (errRc != ESP_OK) {
|
if (errRc != ESP_OK) {
|
||||||
log_e("esp_bt_controller_enable: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
|
log_e("esp_bt_controller_enable: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
|
||||||
|
Loading…
Reference in New Issue
Block a user