Fix BT not starting correctly and SPP Coex not working

Fixes: https://github.com/espressif/arduino-esp32/issues/4912
This commit is contained in:
me-no-dev
2021-03-09 01:56:47 +02:00
parent 7dc769d81c
commit 4d95e3a7ea
2 changed files with 38 additions and 22 deletions

View File

@ -20,8 +20,10 @@ bool btInUse(){ return true; }
#include "esp_bt.h"
#ifdef CONFIG_BT_CLASSIC_ENABLED
#ifdef CONFIG_BTDM_CONTROLLER_MODE_BTDM
#define BT_MODE ESP_BT_MODE_BTDM
#elif defined(CONFIG_BTDM_CONTROLLER_MODE_BR_EDR_ONLY)
#define BT_MODE ESP_BT_MODE_CLASSIC_BT
#else
#define BT_MODE ESP_BT_MODE_BLE
#endif