Skip to content

Commit 44aba4f

Browse files
authored
Merge pull request #11793 from Jason2866/patch-8
Add header check for esp_bt.h in esp32-hal-misc.c
2 parents 3a6edd0 + 6ba1768 commit 44aba4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void initArduino() {
308308
if (err) {
309309
log_e("Failed to initialize NVS! Error: %u", err);
310310
}
311-
#if (defined(CONFIG_BLUEDROID_ENABLED) || defined(CONFIG_NIMBLE_ENABLED)) && SOC_BT_SUPPORTED
311+
#if (defined(CONFIG_BLUEDROID_ENABLED) || defined(CONFIG_NIMBLE_ENABLED)) && SOC_BT_SUPPORTED && __has_include("esp_bt.h")
312312
if (!btInUse()) {
313313
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
314314
}

0 commit comments

Comments
 (0)