Skip to content

Fixed use of Bluedroid instead of BT in HAL. #4879

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

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cores/esp32/esp32-hal-bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@

bool btInUse(){ return true; }

#ifdef CONFIG_BLUEDROID_ENABLED
#include "esp_bt.h"

#ifdef CONFIG_CLASSIC_BT_ENABLED
#ifdef CONFIG_BT_CLASSIC_ENABLED
#define BT_MODE ESP_BT_MODE_BTDM
#else
#define BT_MODE ESP_BT_MODE_BLE
Expand Down Expand Up @@ -79,7 +78,7 @@ bool btStop(){
return false;
}

#else
#else // CONFIG_BT_ENABLED
bool btStarted()
{
return false;
Expand All @@ -94,6 +93,6 @@ bool btStop()
{
return false;
}
#endif
#endif

#endif // CONFIG_BT_ENABLED