File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include "sdkconfig.h"
16
- #if defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
16
+ #include "soc/soc_caps.h"
17
+ #if defined(CONFIG_BT_ENABLED ) && defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
17
18
18
19
#include "esp_bt.h"
19
20
#include "esp_bt_main.h"
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
#include "sdkconfig.h"
16
+ #include "soc/soc_caps.h"
16
17
#include "freertos/FreeRTOS.h"
17
18
#include "freertos/task.h"
18
19
#include "esp_attr.h"
25
26
#include "esp_ota_ops.h"
26
27
#endif //CONFIG_APP_ROLLBACK_ENABLE
27
28
#include "esp_private/startup_internal.h"
28
- #if defined(CONFIG_BT_ENABLED ) && SOC_BT_SUPPORTED
29
+ #if defined(CONFIG_BT_ENABLED ) && defined( CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
29
30
#include "esp_bt.h"
30
31
#if CONFIG_IDF_TARGET_ESP32
31
32
bool btInUse () __attribute__((weak ));
@@ -38,7 +39,7 @@ bool btInUse() {
38
39
return false;
39
40
}
40
41
#endif
41
- #endif //CONFIG_BT_ENABLED
42
+ #endif //CONFIG_BLUEDROID_ENABLED
42
43
#include <sys/time.h>
43
44
#include "soc/rtc.h"
44
45
#if !defined(CONFIG_IDF_TARGET_ESP32C2 ) && !defined(CONFIG_IDF_TARGET_ESP32C6 ) && !defined(CONFIG_IDF_TARGET_ESP32H2 ) && !defined(CONFIG_IDF_TARGET_ESP32P4 )
@@ -303,7 +304,7 @@ void initArduino() {
303
304
if (err ) {
304
305
log_e ("Failed to initialize NVS! Error: %u" , err );
305
306
}
306
- #if defined(CONFIG_BT_ENABLED ) && SOC_BT_SUPPORTED
307
+ #if defined(CONFIG_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
307
308
if (!btInUse ()) {
308
309
esp_bt_controller_mem_release (ESP_BT_MODE_BTDM );
309
310
}
Original file line number Diff line number Diff line change 8
8
#if SOC_BT_SUPPORTED
9
9
10
10
#include " sdkconfig.h"
11
- #if defined(CONFIG_BLUEDROID_ENABLED)
11
+ #if defined(CONFIG_BT_ENABLED) && defined( CONFIG_BLUEDROID_ENABLED)
12
12
#include < freertos/FreeRTOS.h>
13
13
#include < freertos/event_groups.h>
14
14
#include < freertos/task.h>
You can’t perform that action at this time.
0 commit comments