We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024113d commit 866475eCopy full SHA for 866475e
cores/esp32/esp32-hal-bt.c
@@ -15,9 +15,8 @@
15
#include "esp32-hal-bt.h"
16
17
#if SOC_BT_SUPPORTED
18
-#ifdef CONFIG_BT_BLUEDROID_ENABLED
+#if defined(CONFIG_BT_BLUEDROID_ENABLED) && __has_include("esp_bt.h")
19
20
-#if __has_include("esp_bt.h")
21
#include "esp_bt.h"
22
23
#if CONFIG_IDF_TARGET_ESP32
@@ -117,7 +116,6 @@ bool btStop() {
117
116
return false;
118
}
119
120
-#endif // __has_include("esp_bt.h")
121
#else // CONFIG_BT_ENABLED
122
bool btStarted() {
123
@@ -134,4 +132,3 @@ bool btStop() {
134
132
#endif /* CONFIG_BT_ENABLED */
135
133
136
#endif /* SOC_BT_SUPPORTED */
137
-
0 commit comments