File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
#include "esp_ota_ops.h"
26
26
#endif //CONFIG_APP_ROLLBACK_ENABLE
27
27
#include "esp_private/startup_internal.h"
28
- #if defined(CONFIG_BT_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
28
+ #if ( defined(CONFIG_BLUEDROID_ENABLED ) || defined( CONFIG_NIMBLE_ENABLED )) && SOC_BT_SUPPORTED && __has_include (" esp_bt . h ")
29
29
#include "esp_bt.h"
30
- #endif //CONFIG_BT_BLUEDROID_ENABLED
30
+ #endif
31
31
#include <sys/time.h>
32
32
#include "soc/rtc.h"
33
33
#if !defined(CONFIG_IDF_TARGET_ESP32C2 ) && !defined(CONFIG_IDF_TARGET_ESP32C6 ) && !defined(CONFIG_IDF_TARGET_ESP32H2 ) && !defined(CONFIG_IDF_TARGET_ESP32P4 ) && !defined(CONFIG_IDF_TARGET_ESP32C5 )
@@ -245,7 +245,7 @@ bool verifyRollbackLater() {
245
245
}
246
246
#endif
247
247
248
- #ifdef CONFIG_BT_BLUEDROID_ENABLED
248
+ #if defined( CONFIG_BLUEDROID_ENABLED ) || defined( CONFIG_NIMBLE_ENABLED )
249
249
#if CONFIG_IDF_TARGET_ESP32
250
250
//overwritten in esp32-hal-bt.c
251
251
bool btInUse () __attribute__((weak ));
@@ -307,7 +307,7 @@ void initArduino() {
307
307
if (err ) {
308
308
log_e ("Failed to initialize NVS! Error: %u" , err );
309
309
}
310
- #if defined(CONFIG_BT_BLUEDROID_ENABLED ) && SOC_BT_SUPPORTED
310
+ #if ( defined(CONFIG_BLUEDROID_ENABLED ) || defined( CONFIG_NIMBLE_ENABLED ) ) && SOC_BT_SUPPORTED
311
311
if (!btInUse ()) {
312
312
esp_bt_controller_mem_release (ESP_BT_MODE_BTDM );
313
313
}
You can’t perform that action at this time.
0 commit comments