Skip to content

Commit bd3adde

Browse files
authored
Fixed use of Bluedroid instead of BT in HAL. (espressif#4879)
Fixed use of CONFIG_BLUEDROID_ENABLED instead of CONFIG_BT_ENABLED in HAL. This prevented compilation with Nimble-only configuration without apparent benefit.
1 parent 1cf1c8e commit bd3adde

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cores/esp32/esp32-hal-bt.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818

1919
bool btInUse(){ return true; }
2020

21-
#ifdef CONFIG_BLUEDROID_ENABLED
2221
#include "esp_bt.h"
2322

24-
#ifdef CONFIG_CLASSIC_BT_ENABLED
23+
#ifdef CONFIG_BT_CLASSIC_ENABLED
2524
#define BT_MODE ESP_BT_MODE_BTDM
2625
#else
2726
#define BT_MODE ESP_BT_MODE_BLE
@@ -79,7 +78,7 @@ bool btStop(){
7978
return false;
8079
}
8180

82-
#else
81+
#else // CONFIG_BT_ENABLED
8382
bool btStarted()
8483
{
8584
return false;
@@ -94,6 +93,6 @@ bool btStop()
9493
{
9594
return false;
9695
}
97-
#endif
98-
#endif
96+
97+
#endif // CONFIG_BT_ENABLED
9998

0 commit comments

Comments
 (0)