File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 15
15
#include "esp32-hal-bt.h"
16
16
17
17
#if SOC_BT_SUPPORTED
18
- #if defined(CONFIG_BLUEDROID_ENABLED ) || defined(CONFIG_NIMBLE_ENABLED )
19
- #if defined(CONFIG_BT_BLUEDROID_ENABLED ) && __has_include ("esp_bt .h ")
18
+ #if (defined(CONFIG_BLUEDROID_ENABLED ) || defined(CONFIG_NIMBLE_ENABLED )) && __has_include ("esp_bt .h ")
20
19
21
20
#if CONFIG_IDF_TARGET_ESP32
22
21
bool btInUse () {
@@ -117,7 +116,7 @@ bool btStop() {
117
116
return false;
118
117
}
119
118
120
- #else // !defined(CONFIG_BLUEDROID_ENABLED) && ! defined(CONFIG_NIMBLE_ENABLED)
119
+ #else // !__has_include("esp_bt.h") || !( defined(CONFIG_BLUEDROID_ENABLED) || defined(CONFIG_NIMBLE_ENABLED) )
121
120
bool btStarted () {
122
121
return false;
123
122
}
@@ -130,6 +129,6 @@ bool btStop() {
130
129
return false;
131
130
}
132
131
133
- #endif /* !defined(CONFIG_BLUEDROID_ENABLED) && ! defined(CONFIG_NIMBLE_ENABLED) */
132
+ #endif /* !__has_include("esp_bt.h") || !( defined(CONFIG_BLUEDROID_ENABLED) || defined(CONFIG_NIMBLE_ENABLED) ) */
134
133
135
134
#endif /* SOC_BT_SUPPORTED */
You can’t perform that action at this time.
0 commit comments