Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 684a931

Browse filesBrowse files
authored
fix(bt): Compile error on ESP32-P4 (espressif#11035)
* fix(bt): Fix compile error on ESP32-P4 * fix(bt): Fix compile error on ESP32-P4
1 parent 7575fa0 commit 684a931
Copy full SHA for 684a931

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎cores/esp32/esp32-hal-misc.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-misc.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "esp_ota_ops.h"
2626
#endif //CONFIG_APP_ROLLBACK_ENABLE
2727
#include "esp_private/startup_internal.h"
28-
#ifdef CONFIG_BT_ENABLED
28+
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
2929
#include "esp_bt.h"
3030
#endif //CONFIG_BT_ENABLED
3131
#include <sys/time.h>
@@ -305,7 +305,7 @@ void initArduino() {
305305
if (err) {
306306
log_e("Failed to initialize NVS! Error: %u", err);
307307
}
308-
#ifdef CONFIG_BT_ENABLED
308+
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
309309
if (!btInUse()) {
310310
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
311311
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.