File tree 2 files changed +5
-16
lines changed
2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 17
17
#if SOC_BT_SUPPORTED
18
18
#ifdef CONFIG_BT_ENABLED
19
19
20
- #if CONFIG_IDF_TARGET_ESP32
21
- bool btInUse () {
22
- return true;
23
- }
24
- #else
25
- // user may want to change it to free resources
26
- __attribute__((weak )) bool btInUse () {
27
- return true;
28
- }
29
- #endif
30
-
31
20
#include "esp_bt.h"
32
21
33
22
#ifdef CONFIG_BTDM_CONTROLLER_MODE_BTDM
Original file line number Diff line number Diff line change @@ -305,11 +305,11 @@ void initArduino() {
305
305
if (err ) {
306
306
log_e ("Failed to initialize NVS! Error: %u" , err );
307
307
}
308
- // #if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
309
- // if (!btInUse()) {
310
- // esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
311
- // }
312
- // #endif
308
+ #if defined(CONFIG_BT_ENABLED ) && SOC_BT_SUPPORTED
309
+ if (!btInUse ()) {
310
+ esp_bt_controller_mem_release (ESP_BT_MODE_BTDM );
311
+ }
312
+ #endif
313
313
init ();
314
314
initVariant ();
315
315
}
You can’t perform that action at this time.
0 commit comments