Skip to content

Commit 0b4dfd4

Browse files
authored
Update esp32-hal-misc.c
1 parent 0840603 commit 0b4dfd4

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cores/esp32/esp32-hal-misc.c

-21
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
#include "esp_ota_ops.h"
2626
#endif //CONFIG_APP_ROLLBACK_ENABLE
2727
#include "esp_private/startup_internal.h"
28-
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
29-
#include "esp_bt.h"
30-
#endif //CONFIG_BT_ENABLED
3128
#include <sys/time.h>
3229
#include "soc/rtc.h"
3330
#if !defined(CONFIG_IDF_TARGET_ESP32C2) && !defined(CONFIG_IDF_TARGET_ESP32C6) && !defined(CONFIG_IDF_TARGET_ESP32H2) && !defined(CONFIG_IDF_TARGET_ESP32P4)
@@ -243,19 +240,6 @@ bool verifyRollbackLater() {
243240
}
244241
#endif
245242

246-
#ifdef CONFIG_BT_ENABLED
247-
#if CONFIG_IDF_TARGET_ESP32
248-
//overwritten in esp32-hal-bt.c
249-
bool btInUse() __attribute__((weak));
250-
bool btInUse() {
251-
return false;
252-
}
253-
#else
254-
//from esp32-hal-bt.c
255-
extern bool btInUse();
256-
#endif
257-
#endif
258-
259243
#if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM
260244
ESP_SYSTEM_INIT_FN(init_psram_new, CORE, BIT(0), 99) {
261245
psramInit();
@@ -305,11 +289,6 @@ void initArduino() {
305289
if (err) {
306290
log_e("Failed to initialize NVS! Error: %u", err);
307291
}
308-
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
309-
if (!btInUse()) {
310-
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
311-
}
312-
#endif
313292
init();
314293
initVariant();
315294
}

0 commit comments

Comments
 (0)