Skip to content

Commit 866475e

Browse files
authored
only one if
1 parent 024113d commit 866475e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cores/esp32/esp32-hal-bt.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
#include "esp32-hal-bt.h"
1616

1717
#if SOC_BT_SUPPORTED
18-
#ifdef CONFIG_BT_BLUEDROID_ENABLED
18+
#if defined(CONFIG_BT_BLUEDROID_ENABLED) && __has_include("esp_bt.h")
1919

20-
#if __has_include("esp_bt.h")
2120
#include "esp_bt.h"
2221

2322
#if CONFIG_IDF_TARGET_ESP32
@@ -117,7 +116,6 @@ bool btStop() {
117116
return false;
118117
}
119118

120-
#endif // __has_include("esp_bt.h")
121119
#else // CONFIG_BT_ENABLED
122120
bool btStarted() {
123121
return false;
@@ -134,4 +132,3 @@ bool btStop() {
134132
#endif /* CONFIG_BT_ENABLED */
135133

136134
#endif /* SOC_BT_SUPPORTED */
137-

0 commit comments

Comments
 (0)