File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
#if SOC_BT_SUPPORTED
18
18
#if defined(CONFIG_BT_BLUEDROID_ENABLED ) && __has_include ("esp_bt .h ")
19
19
20
- #include "esp_bt.h"
21
-
22
20
#if CONFIG_IDF_TARGET_ESP32
23
21
bool btInUse () {
24
22
return true;
@@ -30,6 +28,8 @@ __attribute__((weak)) bool btInUse() {
30
28
}
31
29
#endif
32
30
31
+ #include "esp_bt.h"
32
+
33
33
#ifdef CONFIG_BTDM_CONTROLLER_MODE_BTDM
34
34
#define BT_MODE ESP_BT_MODE_BTDM
35
35
#elif defined(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY )
@@ -56,7 +56,7 @@ bool btStartMode(bt_mode mode) {
56
56
case BT_MODE_BTDM : esp_bt_mode = ESP_BT_MODE_BTDM ; break ;
57
57
default : esp_bt_mode = BT_MODE ; break ;
58
58
}
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().
60
60
cfg .mode = esp_bt_mode ;
61
61
if (cfg .mode == ESP_BT_MODE_CLASSIC_BT ) {
62
62
esp_bt_controller_mem_release (ESP_BT_MODE_BLE );
You can’t perform that action at this time.
0 commit comments