We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 541e93c commit 494b436Copy full SHA for 494b436
cores/esp32/esp32-hal-misc.c
@@ -25,7 +25,7 @@
25
#include "esp_ota_ops.h"
26
#endif //CONFIG_APP_ROLLBACK_ENABLE
27
#include "esp_private/startup_internal.h"
28
-#ifdef CONFIG_BT_ENABLED && SOC_BT_SUPPORTED
+#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
29
#include "esp_bt.h"
30
#endif //CONFIG_BT_ENABLED
31
#include <sys/time.h>
@@ -305,7 +305,7 @@ void initArduino() {
305
if (err) {
306
log_e("Failed to initialize NVS! Error: %u", err);
307
}
308
309
if (!btInUse()) {
310
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
311
0 commit comments