Skip to content

Commit b1569b1

Browse files
authored
Update esp32-hal-bt.c
1 parent 866475e commit b1569b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/esp32/esp32-hal-bt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
#if SOC_BT_SUPPORTED
1818
#if defined(CONFIG_BT_BLUEDROID_ENABLED) && __has_include("esp_bt.h")
1919

20-
#include "esp_bt.h"
21-
2220
#if CONFIG_IDF_TARGET_ESP32
2321
bool btInUse() {
2422
return true;
@@ -30,6 +28,8 @@ __attribute__((weak)) bool btInUse() {
3028
}
3129
#endif
3230

31+
#include "esp_bt.h"
32+
3333
#ifdef CONFIG_BTDM_CONTROLLER_MODE_BTDM
3434
#define BT_MODE ESP_BT_MODE_BTDM
3535
#elif defined(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
@@ -56,7 +56,7 @@ bool btStartMode(bt_mode mode) {
5656
case BT_MODE_BTDM: esp_bt_mode = ESP_BT_MODE_BTDM; break;
5757
default: esp_bt_mode = BT_MODE; break;
5858
}
59-
// esp_bt_controller_enable(MODE) This mode must be equal as the mode in "cfg" of esp_bt_controller_init().
59+
// esp_bt_controller_enable(MODE) This mode must be equal as the mode in cfg of esp_bt_controller_init().
6060
cfg.mode = esp_bt_mode;
6161
if (cfg.mode == ESP_BT_MODE_CLASSIC_BT) {
6262
esp_bt_controller_mem_release(ESP_BT_MODE_BLE);

0 commit comments

Comments
 (0)