Skip to content

Fix error #8176: simple_ble_start enable controller failed 259 #11167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reemove duplicate btInUse define
  • Loading branch information
Jason2866 committed Mar 26, 2025
commit a35bf59557992a79aebfd8eeeaab0577f95b7956
11 changes: 0 additions & 11 deletions cores/esp32/esp32-hal-bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@
#if SOC_BT_SUPPORTED
#ifdef CONFIG_BT_ENABLED

#if CONFIG_IDF_TARGET_ESP32
bool btInUse() {
return true;
}
#else
// user may want to change it to free resources
__attribute__((weak)) bool btInUse() {
return true;
}
#endif

#include "esp_bt.h"

#ifdef CONFIG_BTDM_CONTROLLER_MODE_BTDM
Expand Down
10 changes: 5 additions & 5 deletions cores/esp32/esp32-hal-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ void initArduino() {
if (err) {
log_e("Failed to initialize NVS! Error: %u", err);
}
//#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
// if (!btInUse()) {
// esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
// }
//#endif
#if defined(CONFIG_BT_ENABLED) && SOC_BT_SUPPORTED
if (!btInUse()) {
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
}
#endif
init();
initVariant();
}
Expand Down
Loading