From 18473ffe17186ab2bc3b8a007a7f422e64493d30 Mon Sep 17 00:00:00 2001 From: Mark Hale Date: Tue, 27 Jul 2021 22:13:53 +0100 Subject: [PATCH] Corrected CLASSIC_BT_ENABLED to CONFIG_BT_CLASSIC_ENABLED. --- libraries/BLE/src/BLEDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/BLE/src/BLEDevice.cpp b/libraries/BLE/src/BLEDevice.cpp index 681f0e40467..683e4f5d2aa 100644 --- a/libraries/BLE/src/BLEDevice.cpp +++ b/libraries/BLE/src/BLEDevice.cpp @@ -347,7 +347,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr; return; } -#ifndef CLASSIC_BT_ENABLED +#ifndef CONFIG_BT_CLASSIC_ENABLED esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT); #endif esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT(); @@ -357,7 +357,7 @@ gatts_event_handler BLEDevice::m_customGattsHandler = nullptr; return; } -#ifndef CLASSIC_BT_ENABLED +#ifndef CONFIG_BT_CLASSIC_ENABLED errRc = esp_bt_controller_enable(ESP_BT_MODE_BLE); if (errRc != ESP_OK) { log_e("esp_bt_controller_enable: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));